Commit a2b5c46c authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

improve ERP5Site_setSkinCache

* do not set and display if already set.
* display absolute_url(relative=1) instead of id to see the locations of affected objects.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27782 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 224cabb1
......@@ -62,8 +62,9 @@ def setCache(skin):\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
if o.ZCacheable_getManagerId() != cache_manager_id:\n
o.ZCacheable_setManagerId(cache_manager_id)\n
result.append(o.absolute_url(relative=1))\n
elif o.meta_type == \'Folder\':\n
setCache(o)\n
\n
......
469
\ No newline at end of file
470
\ 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