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

go

parent 657e7e32
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,9 @@ class _ValueField(_Field):
else:
return self.default
class _SimpleField(_ValueField):
"""XML attribute is the same as name, has a type and can be default"""
def __init__(self, name, field_type=nop, default=_Required):
super(_SimpleField, self).__init__(name, name, field_type, default)
......
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