Commit 3c32df11 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

revert r29217 and r29218 with more comment.

* template documents should not be catalogued and we cannot use contentValues() as list method, because list mode proxy automatically uses searchFolder() if list method is contentValues().
* disable url in template items so as to avoid users' changes by mistake, that should be prohibited by a better way though).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29287 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 848a25e1
<?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>\'\'\'Returns the list of templates contained in this preferences.\n
\n
This is a specific case, because template document are not catalogued, and if\n
this listbox were using contentValues as list method the the view mode to list\n
mode proxy would use searchFolder in this case (see\n
ERP5Form/Extensions/ListBox_getListModeProxyListMethodName.py for the detail),\n
and searchFolder won\'t returns any document, as they are not in catalog.\n
\'\'\'\n
return context.contentValues(**kw)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</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>kw</string>
<string>_apply_</string>
<string>_getattr_</string>
<string>context</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>Preference_getTemplateList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -91,7 +91,9 @@
<item>
<key> <string>hidden</string> </key>
<value>
<list/>
<list>
<string>listbox_title</string>
</list>
</value>
</item>
<item>
......
......@@ -120,7 +120,12 @@
<item>
<key> <string>editable_columns</string> </key>
<value>
<list/>
<list>
<tuple>
<string>title</string>
<string>title</string>
</tuple>
</list>
</value>
</item>
<item>
......@@ -156,7 +161,16 @@
<item>
<key> <string>url_columns</string> </key>
<value>
<list/>
<list>
<tuple>
<string>title</string>
<string></string>
</tuple>
<tuple>
<string>translated_portal_type</string>
<string></string>
</tuple>
</list>
</value>
</item>
</dictionary>
......@@ -192,7 +206,7 @@
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>contentValues</string> </value>
<value> <string>Preference_getTemplateList</string> </value>
</item>
</dictionary>
</pickle>
......
1311
\ No newline at end of file
1312
\ 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