class workstation: def __init__(self): self.attributes ={ "objectClass":("GOhard", "top", "gotoWorkstation", "Faiobject"), "cn":"-", "ghCpuType":"-", "ghGfxAdapter":"-", "ghMemSize":"-", "ghSoundAdapter":"-", "ghUsbSupport":"-", "goFonHardware":"automatic", "gotoBootKernel":"default", "gotoKernelParameters":"ldap=ZGVmYXVsdC1pbmhlcml0ZWQ= splash=silent", "gotoLastUser":"-", "gotoMode":"locked", "gotoNtpServer":"router", "gotoXColordepth":"8", "gotoXDriver":"[unknown]", "gotoXHsync":"30+55", "gotoXKbLayout":"de", "gotoXKbModel":"btc9000", "gotoXKbVariant":"basic", "gotoXMouseport":"/dev/ttyS0", "gotoXMouseType":"ImPS/2", "gotoXResolution":"640x480", "gotoXVsync":"50+70", "ipHostNumber":"-", "macAddress":"-" } def getip(self): return self.attributes['ipHostNumber'] def setip(self, value): self.attributes['ipHostNumber'] = value ip = property(getip, setip, None, "I'm the 'ip' property.")