Ejemplo n.º 1
0
 def __init__(self, optional=False):
     Integer.__init__(self, min=MIN_GROUP, max=MAX_GROUP, optional=optional)
Ejemplo n.º 2
0
 def __init__(self, optional=False):
     Integer.__init__(self, min=1)
Ejemplo n.º 3
0
 def __init__(self):
     Integer.__init__(self, min=0, max=6)
Ejemplo n.º 4
0
 def getter(self, object, name, value):
     value = Integer.getter(self, object, name, value)
     if value < 1:
         raise ValueError('Invalid value for the "%s" identifier: %s' % repr(value))
     return value
Ejemplo n.º 5
0
 def _readXML(self, rules, node, name, context):
     if context.version in ("3.0m3", "3.0dev4"):
         return rules.createID() // 10
     identifier = Integer._readXML(self, rules, node, name, context)
     identifier = int(identifier)
     return identifier
Ejemplo n.º 6
0
 def __init__(self):
     Integer.__init__(self, min=1)