Kaydet (Commit) 980972d6 authored tarafından Your Name's avatar Your Name

minor fixes

üst 8becb35e
...@@ -617,7 +617,7 @@ class autoxml(oo.autosuper, oo.autoprop): ...@@ -617,7 +617,7 @@ class autoxml(oo.autosuper, oo.autoprop):
def errors(self, where): def errors(self, where):
"""return errors in the object""" """return errors in the object"""
errs = [] errs = []
if hasattr(self, name) and getattr(self, name) is not None: if hasattr(self, name) and getattr(self, name):
value = getattr(self, name) value = getattr(self, name)
errs.extend(errors_a(value, where + '.' + name)) errs.extend(errors_a(value, where + '.' + name))
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment