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

+ 2
- 0
EditorialModel/components.py View File

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

+ 0
- 1
EditorialModel/fieldgroups.py View File

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

+ 1
- 0
EditorialModel/types.py View File

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

Loading…
Cancel
Save