def __init__(self, name='', attributes=None): odict.__init__(self) self.name = quote(name) self.attributes = attributes or {} self._id = name self._filters = [] self._data = None
def __init__(self, name='', array=None, maps=None, attributes=None): self.name = quote(name) self.array = array self.maps = maps or odict() self.attributes = attributes or {} self._id = name self._filters = []
def __init__(self, name='', data=None, type=None, attributes=None): self.name = quote(name) self.data = data self.attributes = attributes or {} if type in _basetypes: self.type = type else: self.type = typemap.get(type, Int32) self._id = name self._filters = []