class CoreNodeManager:
def __init__(self, rootnode):
self.coreList = []
self.infosList = ['name', 'ip', 'hostname', 'port-listen', \
'location', 'load']
self.detailsList = ['creator', 'creation-date']
self.connectedtoList = []
self.tcpList = ['coreid']
self.udpList = ['coreid']
# END __init__
def handleAddOperation(self, path, type, **dict):
attributeList = 'self.' + str(type) + 'List'
for attribute in attributeList:
...
|