prieto пре 8 година
родитељ
комит
8806738bba
1 измењених фајлова са 3 додато и 4 уклоњено
  1. 3
    4
      lodel/leapi/query.py

+ 3
- 4
lodel/leapi/query.py Прегледај датотеку

@@ -24,9 +24,8 @@ class LeQuery(object):
24 24
         if self._hook_prefix is None:
25 25
             raise NotImplementedError("Abstract class")
26 26
         if not inspect.isclass(target_class) or \
27
-            not issubclass(target_class, LeObject):
28
-            raise TypeError("target class has to be a child class of LeObject \
29
-but %s given"% target_class)
27
+           not issubclass(target_class, LeObject):
28
+            raise TypeError("target class has to be a child class of LeObject but %s given"% target_class)
30 29
         self._target_class = target_class
31 30
         self._ro_datasource = target_class._ro_datasource
32 31
         self._rw_datasource = target_class._rw_datasource
@@ -39,7 +38,7 @@ but %s given"% target_class)
39 38
     def execute(self, **datas):
40 39
         if len(datas) > 0:
41 40
             self._target_class.check_datas_value(
42
-                                                    datas,
41
+                                                    datas['datas'lode],
43 42
                                                     **self._data_check_args)
44 43
             self._target_class.prepare_datas() #not yet implemented
45 44
         if self._hook_prefix is None:

Loading…
Откажи
Сачувај