Changeset 4523

Show
Ignore:
Timestamp:
04/21/09 01:01:23 (4 years ago)
Author:
getxsick
Message:

improve output messages

Location:
branch/UMPA/umpa/protocols
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branch/UMPA/umpa/protocols/Payload.py

    r3664 r4523  
    5454            self.bits = len(self._value) * BYTE 
    5555        else: 
    56             raise UMPAAttributeException(value + ' not allowed') 
     56            raise UMPAAttributeException(value + ' is not allowed') 
    5757 
    5858    def clear(self): 
  • branch/UMPA/umpa/protocols/_fields.py

    r3653 r4523  
    111111            self._value = value 
    112112        else: 
    113             raise UMPAAttributeException(str(value) + ' not allowed') 
     113            raise UMPAAttributeException(str(value) + ' is not allowed') 
    114114 
    115115    def clear(self): 
     
    716716                self._value[flag_name].set(value) 
    717717            else: 
    718                 raise UMPAAttributeException(value + ' not allowed') 
     718                raise UMPAAttributeException(value + ' is not allowed') 
    719719 
    720720 
  • branch/UMPA/umpa/protocols/_protocols.py

    r3653 r4523  
    8787            return self.get_field(attr).get() 
    8888        else: 
    89             raise UMPAAttributeException(attr + ' not allowed') 
     89            raise UMPAAttributeException(attr + ' is not allowed') 
    9090 
    9191    def __setattr__(self, attr, value): 
     
    102102            self.get_field(attr).set(value) 
    103103        else: 
    104             raise UMPAAttributeException(attr + ' not allowed') 
     104            raise UMPAAttributeException(attr + ' is not allowed') 
    105105 
    106106    def __str__(self): 
     
    156156            return self._fields[keyname] 
    157157        else: 
    158             raise UMPAAttributeException(keyname + ' not allowed') 
     158            raise UMPAAttributeException(keyname + ' is not allowed') 
    159159 
    160160    def set_fields(self, *args, **kwargs): 
     
    249249     
    250250        if field not in field_list: 
    251             raise UMPAAttributeException(field + ' not allowed') 
     251            raise UMPAAttributeException(field + ' is not allowed') 
    252252 
    253253        offset = 0