コード例 #1
0
    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
コード例 #2
0
    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 = []
コード例 #3
0
    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 = []