コード例 #1
0
ファイル: user_group.py プロジェクト: maximerobin/Ufwi
 def __init__(self, optional=False):
     Integer.__init__(self, min=MIN_GROUP, max=MAX_GROUP, optional=optional)
コード例 #2
0
ファイル: duration.py プロジェクト: maximerobin/Ufwi
 def __init__(self, optional=False):
     Integer.__init__(self, min=1)
コード例 #3
0
ファイル: periodicity.py プロジェクト: maximerobin/Ufwi
 def __init__(self):
     Integer.__init__(self, min=0, max=6)
コード例 #4
0
ファイル: attribute.py プロジェクト: maximerobin/Ufwi
 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
コード例 #5
0
ファイル: attribute.py プロジェクト: maximerobin/Ufwi
 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
コード例 #6
0
ファイル: attribute.py プロジェクト: maximerobin/Ufwi
 def __init__(self):
     Integer.__init__(self, min=1)