Browse Source

[Fieldgroups] pep8

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

+ 5
- 5
EditorialModel/fieldgroups.py View File

@@ -4,10 +4,10 @@ from EditorialModel.components import EmComponent
4 4
 from EditorialModel.classes import EmClass
5 5
 import EditorialModel.fieldtypes as ftypes
6 6
 
7
-from Database import sqlutils
8
-import sqlalchemy as sql
7
+# from Database import sqlutils
8
+# import sqlalchemy as sql
9 9
 
10
-import EditorialModel
10
+# import EditorialModel
11 11
 
12 12
 
13 13
 ## Represents groups of EmField associated with an EmClass
@@ -34,9 +34,9 @@ class EmFieldGroup(EmComponent):
34 34
     # @throw TypeError If an argument is of an unexepted type
35 35
     def create(cls, name, em_class, **em_component_args):
36 36
         if not isinstance(name, str):
37
-            raise TypeError("Excepting <class str> as name. But got " + str(type(name)))
37
+            raise TypeError("Excepting <class str> as name. But got %s" % str(type(name)))
38 38
         if not isinstance(em_class, EmClass):
39
-            raise TypeError("Excepting <class EmClass> as em_class. But got "+str(type(name)))
39
+            raise TypeError("Excepting <class EmClass> as em_class. But got %s" % str(type(name)))
40 40
 
41 41
         return super(EmFieldGroup, cls).create(name=name, class_id=em_class.uid, **em_component_args)
42 42
 

Loading…
Cancel
Save