本文整理汇总了Python中OFS.Folder.Folder.manage_main方法的典型用法代码示例。如果您正苦于以下问题:Python Folder.manage_main方法的具体用法?Python Folder.manage_main怎么用?Python Folder.manage_main使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OFS.Folder.Folder
的用法示例。
在下文中一共展示了Folder.manage_main方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: manage_main
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import manage_main [as 别名]
def manage_main(self, REQUEST, *a, **kw):
"""
Wrap Folder's manage_main to render international characters
"""
# ugh, API cruft
if REQUEST is self and a:
REQUEST = a[0]
a = a[1:]
# wrap the special dtml method Folder.manage_main into a valid
# acquisition context. Required for Zope 2.8+.
try:
r = Folder.manage_main(self, self, REQUEST, *a, **kw)
except AttributeError:
manage_main = ImplicitAcquisitionWrapper(Folder.manage_main, self)
r = manage_main(self, self, REQUEST, *a, **kw)
if isinstance(r, unicode):
r = r.encode('utf-8')
REQUEST.RESPONSE.setHeader('Content-type', 'text/html; charset=utf-8')
return r
示例2: manage_main
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import manage_main [as 别名]
def manage_main(self, client=None, REQUEST=None, **kw):
'''
'''
kw['management_view'] = 'Scripts'
return Folder.manage_main(self, client, REQUEST, **kw)