Browse Source

Small bugfixes in leobject and validator

- Replaced a self. by cls. in leobject
- Changed default value for runtest option
Yann Weber 8 years ago
parent
commit
1ea9269742
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      lodel/leapi/leobject.py
  2. 1
    1
      lodel/settings/validator.py

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

563
     @classmethod
563
     @classmethod
564
     def get(cls, query_filters, field_list=None, order=None, group=None, limit=None, offset=0):
564
     def get(cls, query_filters, field_list=None, order=None, group=None, limit=None, offset=0):
565
         if field_list is None:
565
         if field_list is None:
566
-            field_list = self.fieldnames(True)
566
+            field_list = cls.fieldnames(True)
567
         else:
567
         else:
568
             for uid in [ uidname
568
             for uid in [ uidname
569
                 for uidname in cls.uid_fieldname()
569
                 for uidname in cls.uid_fieldname()

+ 1
- 1
lodel/settings/validator.py View File

308
                         SettingValidator('strip')),
308
                         SettingValidator('strip')),
309
         'lib_path': (   None,
309
         'lib_path': (   None,
310
                         SettingValidator('path')),
310
                         SettingValidator('path')),
311
-        'runtest': (    True,
311
+        'runtest': (    False,
312
                         SettingValidator('bool')),
312
                         SettingValidator('bool')),
313
     },
313
     },
314
     'lodel2.logging.*' : {
314
     'lodel2.logging.*' : {

Loading…
Cancel
Save