Changeset 3315

Show
Ignore:
Timestamp:
08/02/08 19:39:23 (5 years ago)
Author:
getxsick
Message:

Another moving to the super-class Protocol

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

Legend:

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

    r3314 r3315  
    201201datagrams. See RFC 791 for more.") 
    202202 
    203     def _is_valid(self, name): 
    204         """Check if attribute is allowed.""" 
    205         return self._fields.has_key(name) 
    206  
    207203    def _raw(self, protocol_container, protocol_bits): 
    208204        bit = 0 
  • branch/UMPA/umpa/protocols/_protocols.py

    r3313 r3315  
    141141 
    142142    def _is_valid(self, field): 
    143         """Overload it in subclasses.""" 
    144         raise NotImplementedError 
     143        """Check if attribute is allowed.""" 
     144        return self._fields.has_key(name) 
    145145 
    146146    def get_offset(self, field):