Allow field attributes which are lists to validate the type of the list items

Starting to apply this for tags too, however it is not correcting things
as would be expected.
This commit is contained in:
James Cammarata 2015-06-27 01:01:08 -04:00
commit bb8d87ceb6
3 changed files with 9 additions and 2 deletions

View file

@ -21,12 +21,13 @@ __metaclass__ = type
class Attribute:
def __init__(self, isa=None, private=False, default=None, required=False):
def __init__(self, isa=None, private=False, default=None, required=False, listof=None):
self.isa = isa
self.private = private
self.default = default
self.required = required
self.listof = listof
class FieldAttribute(Attribute):
pass