Changeset 4523
- Timestamp:
- 04/21/09 01:01:23 (4 years ago)
- Location:
- branch/UMPA/umpa/protocols
- Files:
-
- 3 modified
-
Payload.py (modified) (1 diff)
-
_fields.py (modified) (2 diffs)
-
_protocols.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branch/UMPA/umpa/protocols/Payload.py
r3664 r4523 54 54 self.bits = len(self._value) * BYTE 55 55 else: 56 raise UMPAAttributeException(value + ' not allowed')56 raise UMPAAttributeException(value + ' is not allowed') 57 57 58 58 def clear(self): -
branch/UMPA/umpa/protocols/_fields.py
r3653 r4523 111 111 self._value = value 112 112 else: 113 raise UMPAAttributeException(str(value) + ' not allowed')113 raise UMPAAttributeException(str(value) + ' is not allowed') 114 114 115 115 def clear(self): … … 716 716 self._value[flag_name].set(value) 717 717 else: 718 raise UMPAAttributeException(value + ' not allowed')718 raise UMPAAttributeException(value + ' is not allowed') 719 719 720 720 -
branch/UMPA/umpa/protocols/_protocols.py
r3653 r4523 87 87 return self.get_field(attr).get() 88 88 else: 89 raise UMPAAttributeException(attr + ' not allowed')89 raise UMPAAttributeException(attr + ' is not allowed') 90 90 91 91 def __setattr__(self, attr, value): … … 102 102 self.get_field(attr).set(value) 103 103 else: 104 raise UMPAAttributeException(attr + ' not allowed')104 raise UMPAAttributeException(attr + ' is not allowed') 105 105 106 106 def __str__(self): … … 156 156 return self._fields[keyname] 157 157 else: 158 raise UMPAAttributeException(keyname + ' not allowed')158 raise UMPAAttributeException(keyname + ' is not allowed') 159 159 160 160 def set_fields(self, *args, **kwargs): … … 249 249 250 250 if field not in field_list: 251 raise UMPAAttributeException(field + ' not allowed')251 raise UMPAAttributeException(field + ' is not allowed') 252 252 253 253 offset = 0
