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,7 +563,7 @@ raised when trying to import Datasource"
563 563
     @classmethod
564 564
     def get(cls, query_filters, field_list=None, order=None, group=None, limit=None, offset=0):
565 565
         if field_list is None:
566
-            field_list = self.fieldnames(True)
566
+            field_list = cls.fieldnames(True)
567 567
         else:
568 568
             for uid in [ uidname
569 569
                 for uidname in cls.uid_fieldname()

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

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

Loading…
Cancel
Save