Commit 07de8678 authored by Yusei Tahara's avatar Yusei Tahara

2009-02-20 yusei

* Add a utility script to associate files in skin folder to cache manager.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25630 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 57f9ae6c
<?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>Script_magic</string> </key>
<value> <int>3</int> </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># By default, there are three cache_managers, http_cache and anonymous_http_cache and user_ram_cache.\n
cache_manager_id = \'http_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\', \'Filesystem Image\', \'Filesystem 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>_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>
2009-02-20 yusei
* Add a utility script to associate files in skin folder to cache manager.
2008-12-26 kazuhiko
* add a listbox to see duplicate entries in Glossary view.
* add Portal Type -> Glossary importer.
......
441
\ No newline at end of file
442
\ No newline at end of file
<?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>Script_magic</string> </key>
<value> <int>3</int> </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># By default, there are three cache_managers, http_cache and anonymous_http_cache and user_ram_cache.\n
cache_manager_id = \'http_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\', \'Filesystem Image\', \'Filesystem 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>_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>
2009-02-20 yusei
* Add a utility script to associate files in skin folder to cache manager.
2009-01-14 yusei
* Fixed a wrong link to activity tool under virtual host environment.
......
645
\ No newline at end of file
646
\ No newline at end of file
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