Commit f31f3d8b authored by Nicolas Delaby's avatar Nicolas Delaby

Enable configuration of Cacheable features of ERP5 Form instances.

This modification displays new Tab in ZMI in order to associate the Form with
an Accelerated HTTP Cache Manager.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36221 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c5b3f530
......@@ -522,6 +522,9 @@ def create_settings_form():
method, enctype, encoding, stored_encoding, unicode_mode, edit_order])
return form
from OFS.Cache import filterCacheTab
class ERP5Form(ZMIForm, ZopePageTemplate):
"""
A Formulator form with a built-in rendering parameter based
......@@ -538,7 +541,11 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
({'label':'Proxify', 'action':'formProxify'},
{'label':'UnProxify', 'action':'formUnProxify'},
{'label':'RelatedProxy',
'action':'formShowRelatedProxyFields'}
'action':'formShowRelatedProxyFields'},
{'label': 'Cache',
'action': 'ZCacheable_manage',
'filter': filterCacheTab,
'help': ('OFSP', 'Cacheable-properties.stx')}
)+
ZMIForm.manage_options[5:])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment