def exportAsDict(self, mode='backup'): """ this will export object properties as python-pickle """ pickler = PickleSupernode(self.context) retVal = pickler.exportAsDict(mode) retVal['myFactory'] = self.context.myFactory del pickler return retVal
def exportAsDict(self, mode='backup'): """ this will export object properties as python-pickle """ pickler = PickleSupernode(self.context) retVal = pickler.exportAsDict(mode) retVal['myFactory'] = self.context.myFactory retVal['listAttr']['netType'] = self.context.netType retVal['listAttr']['mac'] = self.context.mac retVal['listAttr']['ipv4List'] = ipv4List = [] for i in self.context.ipv4List: ipv4List.append(i) del pickler return retVal