Commit 13d1c69a authored by Gabriel Monnerat's avatar Gabriel Monnerat

2010-01-17 gabriel

* Add CachingMethod to extract all subjects from all objects in Web Page Module

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42368 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6c0b21c0
......@@ -56,6 +56,8 @@
This script generates a sections list to filter the document on UNG Docs.\n
"""\n
\n
from Products.ERP5Type.Cache import CachingMethod\n
\n
def getAvailableSubjectList(subject_list=()):\n
"""\n
Returns the list of available subjects for all documents\n
......@@ -101,9 +103,13 @@ domain_list = []\n
if depth > 1:\n
return domain_list\n
\n
validation_state_list = [\'draft\', \'published\', \'shared\']\n
getAvailableSubjectListCached = CachingMethod(getAvailableSubjectList, \n
id=\'%s_%s\' % (script.id, \'subject_list_cached\'),\n
cache_factory=\'erp5_ui_short\')\n
\n
subject_list = getAvailableSubjectListCached()\n
\n
for subject in getAvailableSubjectList():\n
for subject in subject_list:\n
appendTempDomain("subject_" + subject,\n
subject.capitalize(),\n
dict(subject=subject),\n
......
2010-01-17 gabriel
* Add CachingMethod to extract all subjects from all objects in Web Page Module
2010-01-10 gabriel
* Add gadget view on UNG template and added script to add a gadget
......
167
\ No newline at end of file
168
\ 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