class MacrolanServer: MACROLAN_DIR="/var/lib/n4d/macrolan/" def register_key(self,ip,key): if key!=None and type(key)==type(""): try: f=open(MACROLAN_DIR+ip,"w") f.write(key) f.close() except: pass def change_netadmin_password(self,ip,password): pass #def change_netadmin_password #class MacrolanServer