diff --git a/bt5/erp5_egov/PathTemplateItem/root_http_skin_cache.xml b/bt5/erp5_egov/PathTemplateItem/root_http_skin_cache.xml new file mode 100644 index 0000000000000000000000000000000000000000..702e480dc54978440f5b3e9a0337769f57c1b0ae --- /dev/null +++ b/bt5/erp5_egov/PathTemplateItem/root_http_skin_cache.xml @@ -0,0 +1,54 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="AcceleratedHTTPCacheManager" module="Products.StandardCacheManagers.AcceleratedHTTPCacheManager"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_AcceleratedHTTPCacheManager__cacheid</string> </key> + <value> <string>211063852_1220267953.233876</string> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_settings</string> </key> + <value> + <dictionary> + <item> + <key> <string>anonymous_only</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>interval</string> </key> + <value> <int>3600</int> </value> + </item> + <item> + <key> <string>notify_urls</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>root_http_skin_cache</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/ERP5Site_setSkinCache.xml b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/ERP5Site_setSkinCache.xml new file mode 100644 index 0000000000000000000000000000000000000000..66122686b3c1ef38c0fbf36fe079246b66dff250 --- /dev/null +++ b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/ERP5Site_setSkinCache.xml @@ -0,0 +1,167 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>cache_manager_id = \'root_http_skin_cache\'\n +result = []\n +\n +def setCache(skin):\n + for o in skin.objectValues():\n + id = o.id\n + if callable(id): id = id()\n + if o.meta_type in (\'Image\', \'File\') or id.endswith(\'.css\') or id.endswith(\'.js\'):\n + o.ZCacheable_setManagerId(cache_manager_id)\n + result.append(id)\n + elif o.meta_type == \'Folder\':\n + setCache(o)\n +\n +for skin in context.portal_skins.objectValues():\n + setCache(skin)\n +\n +return "\\n".join(result)\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>cache_manager_id</string> + <string>result</string> + <string>setCache</string> + <string>_getiter_</string> + <string>_getattr_</string> +<string>context</string> + <string>skin</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ERP5Site_setSkinCache</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov/bt/revision b/bt5/erp5_egov/bt/revision index d36f9fbea43831f3239f96376ee00c977dc2d7de..02225a563f9711d2f3a52d071d1249ed9f2dea93 100644 --- a/bt5/erp5_egov/bt/revision +++ b/bt5/erp5_egov/bt/revision @@ -1 +1 @@ -267 \ No newline at end of file +268 \ No newline at end of file diff --git a/bt5/erp5_egov/bt/template_path_list b/bt5/erp5_egov/bt/template_path_list index 609d3e74c8db7928af22d9823ca9722c0362bb60..2a7323b8bf69a2e6037058dc462bcefe92d61315 100644 --- a/bt5/erp5_egov/bt/template_path_list +++ b/bt5/erp5_egov/bt/template_path_list @@ -1,3 +1,4 @@ portal_caches/erp5_session_cache portal_caches/erp5_session_cache/default_ram_cache +root_http_skin_cache web_page_module/9 \ No newline at end of file