def __init__(self, **data): """ constructor of the object """ Device.__init__(self, **data) refAttributeNames = getRefAttributeNames(HardwareAppliance) for (name, value) in data.items(): if name in IHardwareAppliance.names() and \ name not in refAttributeNames: setattr(self, name, value) self.ikRevision = __version__
def __init__(self, **data): """ constructor of the object """ Device.__init__(self, **data) refAttributeNames = getRefAttributeNames(PersonalComputer) for (name, value) in data.items(): if name in IPersonalComputer.names() and \ name not in refAttributeNames: setattr(self, name, value) self.ikRevision = __version__
def __init__(self, **data): """ constructor of the object """ Device.__init__(self, **data) refAttributeNames = getRefAttributeNames(Switch) print "dddd: ", refAttributeNames for (name, value) in data.items(): if name in ISwitch.names() and \ name not in refAttributeNames: setattr(self, name, value) self.ikRevision = __version__
def store_refs(self, **data): Device.store_refs(self, **data) refAttributeNames = self.getRefAttributeNames() for (name, value) in data.items(): if name in refAttributeNames: setattr(self, name, value)