Browse Source

First tests on LeObjects

Yann Weber 8 years ago
parent
commit
976d0c90c8
4 changed files with 2 additions and 2 deletions
  1. 1
    1
      em_test.py
  2. BIN
      examples/em_test.pickle
  3. 1
    1
      lodel/leapi/leobject.py
  4. BIN
      tests/editorial_model.pickle

+ 1
- 1
em_test.py View File

@@ -67,7 +67,7 @@ entitie = em.new_class( 'entitie',
67 67
 person = em.new_class(  'person',
68 68
                         display_name = 'Person',
69 69
                         help_text = 'Replace old person classtype',
70
-                        abstract = True,
70
+                        abstract = False,
71 71
                         group = base_group,
72 72
                         parents = em_object,
73 73
 )

BIN
examples/em_test.pickle View File


+ 1
- 1
lodel/leapi/leobject.py View File

@@ -70,7 +70,7 @@ class LeObject(object):
70 70
         # Checks that uid is given
71 71
         for uid_name in self._uid:
72 72
             if uid_name not in kwargs:
73
-                raise AttributeError("Cannot instanciate a LeObject without it's identifier")
73
+                raise LeApiError("Cannot instanciate a LeObject without it's identifier")
74 74
             self.__datas[uid_name] = kwargs[uid_name]
75 75
             del(kwargs[uid_name])
76 76
             self.__initialized.append(uid_name)

BIN
tests/editorial_model.pickle View File


Loading…
Cancel
Save