Ejemplo n.º 1
0
 def __init__(self, name, default, length_from=None, count_from=None):
     Field.__init__(self, name, default)
     self.length_from = length_from
     self.count_from = count_from
Ejemplo n.º 2
0
 def __init__(self, name, default, length=None, length_from=None):
     self.length_from = length_from
     if length:
         self.length_from = lambda p, l=length: l
     Field.__init__(self, name, default, "!Q")
Ejemplo n.º 3
0
 def __init__(self, name, default):
     Field.__init__(self, name, default, '<h')
Ejemplo n.º 4
0
 def __init__(self, name, default, length=None, length_from=None):
     self.length_from = length_from
     if length:
         self.length_from = lambda p, l=length: l
     Field.__init__(self, name, default, "!Q")
Ejemplo n.º 5
0
 def __init__(self, name, default, length_from=None, count_from=None):
     Field.__init__(self, name, default)
     self.length_from = length_from
     self.count_from = count_from
Ejemplo n.º 6
0
 def __init__(self, name, default=None, id=None, multi=False):
     Field.__init__(self, name, default)
     self.pb_id = id
     self.pb_multi = multi
     return
Ejemplo n.º 7
0
 def __init__(self, name, default, count_from=None):  # noqa: E501
     Field.__init__(self, name, default)
     self.count_from = count_from