Browse Source

[EmFieldGroup] pep8+pylint

Roland Haroutiounian 9 years ago
parent
commit
3b12b84c9d
1 changed files with 1 additions and 4 deletions
  1. 1
    4
      EditorialModel/fieldgroups.py

+ 1
- 4
EditorialModel/fieldgroups.py View File

1
 #-*- coding: utf-8 -*-
1
 #-*- coding: utf-8 -*-
2
 
2
 
3
 from EditorialModel.components import EmComponent
3
 from EditorialModel.components import EmComponent
4
-import EditorialModel.fieldtypes as ftypes
5
 from EditorialModel.fields import EmField
4
 from EditorialModel.fields import EmField
6
 
5
 
7
 
6
 
14
     ranked_in = 'class_id'
13
     ranked_in = 'class_id'
15
 
14
 
16
     ## EmFieldGroup instanciation
15
     ## EmFieldGroup instanciation
17
-    def __init__(self, model, uid, name, class_id, string = None, help_text = None, date_update = None, date_create = None, rank = None):
18
-
16
+    def __init__(self, model, uid, name, class_id, string=None, help_text=None, date_update=None, date_create=None, rank=None):
19
         self.class_id = class_id
17
         self.class_id = class_id
20
         self.check_type('class_id', int)
18
         self.check_type('class_id', int)
21
         super(EmFieldGroup, self).__init__(model=model, uid=uid, name=name, string=string, help_text=help_text, date_update=date_update, date_create=date_create, rank=rank)
19
         super(EmFieldGroup, self).__init__(model=model, uid=uid, name=name, string=string, help_text=help_text, date_update=date_update, date_create=date_create, rank=rank)
22
-        pass
23
 
20
 
24
     ## Check if the EmFieldGroup is valid
21
     ## Check if the EmFieldGroup is valid
25
     # @return True if valid False if not
22
     # @return True if valid False if not

Loading…
Cancel
Save