本文整理汇总了Python中MaKaC.common.PickleJar.DictPickler.update方法的典型用法代码示例。如果您正苦于以下问题:Python DictPickler.update方法的具体用法?Python DictPickler.update怎么用?Python DictPickler.update使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MaKaC.common.PickleJar.DictPickler
的用法示例。
在下文中一共展示了DictPickler.update方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _getAnswer
# 需要导入模块: from MaKaC.common.PickleJar import DictPickler [as 别名]
# 或者: from MaKaC.common.PickleJar.DictPickler import update [as 别名]
def _getAnswer(self):
"""
Updates the material with the new properties
"""
self.changeUserList(self._material, self._newUserList)
DictPickler.update(self._material, self._newProperties)
return DictPickler.pickle(self._material)
示例2: _getAnswer
# 需要导入模块: from MaKaC.common.PickleJar import DictPickler [as 别名]
# 或者: from MaKaC.common.PickleJar.DictPickler import update [as 别名]
def _getAnswer( self):
if self._info == None:
return UserGetPersonalInfo(self._params, self._aw.getIP(), self._aw.getSession()).process()
pInfo = self._target.getPersonalInfo()
DictPickler.update(pInfo, self._info)
return DictPickler.pickle(pInfo)
示例3: __addPresenters
# 需要导入模块: from MaKaC.common.PickleJar import DictPickler [as 别名]
# 或者: from MaKaC.common.PickleJar.DictPickler import update [as 别名]
def __addPresenters(self, subcontrib):
# add each presenter
for presenterValues in self._presenters:
# magically update a new ContributionParticipation with JSON data, using the DictPickler
presenter = conference.SubContribParticipation()
DictPickler.update(presenter, presenterValues)
subcontrib.newSpeaker(presenter)