Browse Source

[EmFieldGroup] pep8+pylint

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

+ 3
- 3
EditorialModel/fieldgroups.py View File

@@ -3,7 +3,7 @@
3 3
 from EditorialModel.components import EmComponent
4 4
 from EditorialModel.fields import EmField
5 5
 from EditorialModel.classes import EmClass
6
-from EditorialModel.exceptions import *
6
+from EditorialModel.exceptions import EmComponentCheckError
7 7
 
8 8
 
9 9
 ## Represents groups of EmField associated with an EmClass
@@ -26,9 +26,9 @@ class EmFieldGroup(EmComponent):
26 26
         super(EmFieldGroup, self).check()
27 27
         em_class = self.model.component(self.class_id)
28 28
         if not em_class:
29
-            raise EmComponentCheckError("class_id contains a non existing uid '"+str(self.class_id)+"'")
29
+            raise EmComponentCheckError("class_id contains a non existing uid '%s'" % str(self.class_id))
30 30
         if not isinstance(em_class, EmClass):
31
-            raise EmComponentCheckError("class_id cointains an uid from a component that is not an EmClass but an "+type(em_class))
31
+            raise EmComponentCheckError("class_id cointains an uid from a component that is not an EmClass but an %s" % type(em_class))
32 32
 
33 33
     ## Deletes a fieldgroup
34 34
     # @return True if the deletion is possible, False if not

Loading…
Cancel
Save