コード例 #1
0
ファイル: ipickle.py プロジェクト: mleist/ict-ok.org
 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']['revision'] = self.context.ikRevision
     retVal['listAttr']['myFactory'] = self.context.myFactory
     retVal['listAttr']['hostname'] = self.context.hostname
     retVal['listAttr']['manufacturer'] = self.context.manufacturer
     retVal['listAttr']['vendor'] = self.context.vendor
     retVal['listAttr']['workinggroup'] = self.context.workinggroup
     retVal['listAttr']['hardware'] = self.context.hardware
     retVal['listAttr']['user'] = self.context.user
     retVal['listAttr']['inv_id'] = self.context.inv_id
     retVal['listAttr']['room'] = self.context.room
     retVal['listAttr']['osList'] = osList = []
     for i in self.context.osList:
         osList.append(i)
     retVal['listAttr']['url'] = self.context.url
     retVal['listAttr']['url_type'] = self.context.url_type
     retVal['listAttr']['url_authname'] = self.context.url_authname
     retVal['listAttr']['url_authpasswd'] = self.context.url_authpasswd
     retVal['listAttr']['console'] = self.context.console
     retVal['listAttr']['genNagios'] = self.context.genNagios
     retVal['listAttr']['health'] = self.context.get_health()
     retVal['listAttr']['wcnt'] = self.context.get_wcnt()
     del pickler
     return retVal
コード例 #2
0
ファイル: ipickle.py プロジェクト: mleist/ict-ok.org
 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']['revision'] = self.context.ikRevision
     retVal['listAttr']['myFactory'] = self.context.myFactory
     retVal['listAttr']['ipv4'] = self.context.ipv4
     del pickler
     return retVal
コード例 #3
0
ファイル: ipickle.py プロジェクト: mleist/ict-ok.org
 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']['revision'] = self.context.ikRevision
     retVal['listAttr']['myFactory'] = self.context.myFactory
     retVal['listAttr']['eventInpObjs_inward_relaying_shutdown'] = \
           self.context.eventInpObjs_inward_relaying_shutdown
     del pickler
     return retVal