Changeset 559

Show
Ignore:
Timestamp:
07/11/08 06:04:16 (5 months ago)
Author:
athomas
Message:

Fix Hostname.xml_cast_attribute().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cly/trunk/cly/builder.py

    r558 r559  
    14491449 
    14501450    @classmethod 
    1451     def xml_cast_attribute(cls): 
    1452         return {'parts': _xml_boolean_type} 
     1451    def xml_cast_attribute(cls, name, value): 
     1452        if name == 'parts': 
     1453            return int(value) 
     1454        return super(Hostname, cls).xml_cast_attribute(name, value) 
    14531455 
    14541456