Skip to content
Snippets Groups Projects
Commit 28f51a84 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

boolints

parent fc130c73
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ class Field(BaseObject):
_name,
_ValueField(('domain', 'type'), 'type', str),
_SimpleField('label', default=None),
_SimpleField('reserved', lambda x: bool(int(x)), default=0),
_SimpleField('reserved', _boolint, default=0),
_ComputedField('basic_type', lambda elem: elem.attrib.get('type', '') == elem.attrib.get('name', '')),
_docs
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment