Exemplo n.º 1
0
 def __init__(self, cls, initial_list=None):
     UserList.__init__(self)
     if initial_list:
         for item in initial_list:
             if isinstance(item, cls):
                 self.data.append(item)
             elif isinstance(item, dict):
                 self.data.append(cls.from_json(item))
Exemplo n.º 2
0
 def __init__(self, cls, initial_list=None):
     UserList.__init__(self)
     if initial_list:
         for item in initial_list:
             if isinstance(item, cls):
                 self.data.append(item)
             elif isinstance(item, dict):
                 self.data.append(cls.from_json(item))
Exemplo n.º 3
0
 def __init__(self, prefix=None, suffix=None):
     UserList.__init__(self)
     self.prefix = prefix
     self.suffix = suffix
Exemplo n.º 4
0
 def __init__(self, value=None, tag=None):
     BERStructured.__init__(self, tag)
     assert value is not None
     UserList.__init__(self, value)
Exemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     PdfType.__init__(self)
     UserList.__init__(self, *args, **kwargs)
Exemplo n.º 6
0
 def __init__(self, *args, **kwargs):
     PdfType.__init__(self)
     UserList.__init__(self, *args, **kwargs)
Exemplo n.º 7
0
 def __init__(self, name='', *args):
     UserList.__init__(self, *args)
     self.__name__ = name
     if args:
         self._update()