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
 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
Exemple #3
0
 def manage_main(self, client=None, REQUEST=None, **kw):
     '''
     '''
     kw['management_view'] = 'Scripts'
     return Folder.manage_main(self, client, REQUEST, **kw)
Exemple #4
0
 def manage_main(self, client=None, REQUEST=None, **kw):
     '''
     '''
     kw['management_view'] = 'Scripts'
     return Folder.manage_main(self, client, REQUEST, **kw)