Commit b9f42ff7 authored by Jérome Perrin's avatar Jérome Perrin

as the preference tool is also a Folder, this method is called by page...

as the preference tool is also a Folder, this method is called by page templates to get the list of document templates for self.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10350 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5a3a013b
......@@ -190,6 +190,11 @@ class PreferenceTool(BaseTool):
""" returns all document templates that are in acceptable Preferences
based on different criteria such as folder, portal_type, etc.
"""
if folder is None:
# as the preference tool is also a Folder, this method is called by
# page templates to get the list of document templates for self.
folder = self
# We must set the user_id as a parameter to make sure each
# user can get a different cache
def _getDocumentTemplateList(user_id,portal_type=None):
......
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