Ejemplo n.º 1
0
def valid_priority(priority):
    try:
        valid_positive_integer(priority)
        return True
    except Exception, e:
        msg = 'Invalid EiEvent Priority [%s]; Reason: %s' % (priority, e)
        raise InvalidEiEventPriority(msg)
Ejemplo n.º 2
0
def valid_modificationNumber(modicationNumber):
    try:
        valid_positive_integer(modicationNumber)
        return True
    except Exception, e:
        msg = 'Invalid EiEvent Modification Number [%s]; Reason: %s' % \
              (modicationNumber, e)
        raise InvalidEiEventModificationNumber(msg)