Browse Source

[pep8] Correction sur les lignes vides entre les classes et les méthodes

Roland Haroutiounian 9 years ago
parent
commit
79c168587e

+ 0
- 1
EditorialModel/classes.py View File

76
         meta.drop_all(tables=[class_table], bind=dbe)
76
         meta.drop_all(tables=[class_table], bind=dbe)
77
         return super(EmClass, self).delete()
77
         return super(EmClass, self).delete()
78
 
78
 
79
-
80
     ## Retrieve list of the field_groups of this class
79
     ## Retrieve list of the field_groups of this class
81
     # @return A list of fieldgroups instance
80
     # @return A list of fieldgroups instance
82
     def fieldgroups(self):
81
     def fieldgroups(self):

+ 2
- 0
EditorialModel/components.py View File

398
 class EmComponentNotExistError(Exception):
398
 class EmComponentNotExistError(Exception):
399
     pass
399
     pass
400
 
400
 
401
+
401
 ## @brief Raised on uniq constraint error at creation
402
 ## @brief Raised on uniq constraint error at creation
402
 # This exception class is dedicated to be raised when create() method is called
403
 # This exception class is dedicated to be raised when create() method is called
403
 # if an EmComponent with this name but different parameters allready exist
404
 # if an EmComponent with this name but different parameters allready exist
404
 class EmComponentExistError(Exception):
405
 class EmComponentExistError(Exception):
405
     pass
406
     pass
406
 
407
 
408
+
407
 ## @brief An exception class to tell that no ranking exist yet for the group of the object
409
 ## @brief An exception class to tell that no ranking exist yet for the group of the object
408
 class EmComponentRankingNotExistError(Exception):
410
 class EmComponentRankingNotExistError(Exception):
409
     pass
411
     pass

+ 0
- 1
EditorialModel/fieldgroups.py View File

40
 
40
 
41
         return super(EmFieldGroup, cls).create(name=name, class_id=em_class.uid, **em_component_args)
41
         return super(EmFieldGroup, cls).create(name=name, class_id=em_class.uid, **em_component_args)
42
 
42
 
43
-
44
     ## Get the list of associated fields
43
     ## Get the list of associated fields
45
     # @return A list of EmField instance
44
     # @return A list of EmField instance
46
     def fields(self):
45
     def fields(self):

+ 1
- 0
EditorialModel/types.py View File

11
 import EditorialModel.fieldtypes as ftypes
11
 import EditorialModel.fieldtypes as ftypes
12
 import EditorialModel.classes
12
 import EditorialModel.classes
13
 
13
 
14
+
14
 ## Represents type of documents
15
 ## Represents type of documents
15
 # A type is a specialisation of a class, it can select optional field,
16
 # A type is a specialisation of a class, it can select optional field,
16
 # they have hooks, are organized in hierarchy and linked to other
17
 # they have hooks, are organized in hierarchy and linked to other

Loading…
Cancel
Save