本文整理匯總了Python中OFS.PropertyManager.PropertyManager.manage_editProperties方法的典型用法代碼示例。如果您正苦於以下問題:Python PropertyManager.manage_editProperties方法的具體用法?Python PropertyManager.manage_editProperties怎麽用?Python PropertyManager.manage_editProperties使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OFS.PropertyManager.PropertyManager
的用法示例。
在下文中一共展示了PropertyManager.manage_editProperties方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: manage_editProperties
# 需要導入模塊: from OFS.PropertyManager import PropertyManager [as 別名]
# 或者: from OFS.PropertyManager.PropertyManager import manage_editProperties [as 別名]
def manage_editProperties(self,first_day_week,REQUEST=None):
""" Manage the edited values """
if first_day_week == 'Monday':
calendar.setfirstweekday(0)
else:
calendar.setfirstweekday(6)
self.ZCacheable_invalidate()
return PropertyManager.manage_editProperties(self,REQUEST)
示例2: manage_editProperties
# 需要導入模塊: from OFS.PropertyManager import PropertyManager [as 別名]
# 或者: from OFS.PropertyManager.PropertyManager import manage_editProperties [as 別名]
def manage_editProperties(self, REQUEST):
"""Ensure the SQL methods get regenerated."""
self.delSQLQueries()
res = PropertyManager.manage_editProperties(self, REQUEST)
self.addSQLQueries()
return res
示例3: manage_editProperties
# 需要導入模塊: from OFS.PropertyManager import PropertyManager [as 別名]
# 或者: from OFS.PropertyManager.PropertyManager import manage_editProperties [as 別名]
def manage_editProperties(self, REQUEST):
"""Change properties from ZMI"""
result = PropertyManager.manage_editProperties(self, REQUEST)
self.reindex_object()
return result
示例4: manage_editProperties
# 需要導入模塊: from OFS.PropertyManager import PropertyManager [as 別名]
# 或者: from OFS.PropertyManager.PropertyManager import manage_editProperties [as 別名]
def manage_editProperties(self, REQUEST):
""" re-render the page after changing the properties (encodings!!!) """
result = PropertyManager.manage_editProperties(self, REQUEST)
self._clear_cache()
return result