Commit 16ae9a84 authored by Yoshinori Okuji's avatar Yoshinori Okuji

2006-07-12 yo

* Do not reset selections if not present in ListBoxZuite_reset.
* Accept keyword parameters in ListBox_setPropertyList.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8427 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 95895e71
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">\n
<head>\n
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
<title>Test Page Template</title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Test Page Template</td></tr>\n
</thead><tbody>\n
<tal:block metal:use-macro="here/ListBoxZuite_CommonTemplate/macros/init" />\n
<tr>\n
\t<td>open</td>\n
\t<td>/erp5/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_page_template=FooModule_renderListBox</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>assertTextPresent</td>\n
\t<td>Set Successfully.</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>open</td>\n
\t<td>/erp5/foo_module/view</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>assertTextPresent</td>\n
\t<td>This is just a test</td>\n
\t<td></td>\n
</tr>\n
\n
</tbody></table>\n
</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testPageTemplate</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<div><p>This is just a test.</p></div>
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>FooModule_renderListBox</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -436,7 +436,7 @@ ...@@ -436,7 +436,7 @@
</item> </item>
<item> <item>
<key> <string>page_template</string> </key> <key> <string>page_template</string> </key>
<value> <string></string> </value> <value> <string>FooModule_renderListBox</string> </value>
</item> </item>
<item> <item>
<key> <string>portal_types</string> </key> <key> <string>portal_types</string> </key>
...@@ -497,23 +497,12 @@ ...@@ -497,23 +497,12 @@
<item> <item>
<key> <string>stat_columns</string> </key> <key> <string>stat_columns</string> </key>
<value> <value>
<list> <list/>
<tuple>
<string>id</string>
<string>FooModule_statId</string>
</tuple>
<tuple>
<string>title</string>
<string>FooModule_statTitle</string>
</tuple>
</list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>stat_method</string> </key> <key> <string>stat_method</string> </key>
<value> <value> <string></string> </value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
...@@ -569,23 +558,4 @@ ...@@ -569,23 +558,4 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.MethodField</string>
<string>Method</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>portal_catalog</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -87,11 +87,13 @@ result = form.listbox.ListBox_setPropertyList()\n ...@@ -87,11 +87,13 @@ result = form.listbox.ListBox_setPropertyList()\n
\n \n
# Reset the selection.\n # Reset the selection.\n
def resetSelection(selection_name):\n def resetSelection(selection_name):\n
context.portal_selections.setSelectionToAll(selection_name, reset_domain_tree=True, reset_report_tree=True)\n selection_tool = context.portal_selections\n
context.portal_selections.setSelectionSortOrder(selection_name, [])\n if selection_tool.getSelectionFor(selection_name) is not None:\n
context.portal_selections.setSelectionColumns(selection_name, [])\n selection_tool.setSelectionToAll(selection_name, reset_domain_tree=True, reset_report_tree=True)\n
context.portal_selections.setSelectionStats(selection_name, [])\n selection_tool.setSelectionSortOrder(selection_name, [])\n
context.portal_selections.setListboxDisplayMode(context.REQUEST, \'FlatListMode\', selection_name)\n selection_tool.setSelectionColumns(selection_name, [])\n
selection_tool.setSelectionStats(selection_name, [])\n
selection_tool.setListboxDisplayMode(context.REQUEST, \'FlatListMode\', selection_name)\n
\n \n
resetSelection(\'foo_selection\')\n resetSelection(\'foo_selection\')\n
resetSelection(\'foo_line_selection\')\n resetSelection(\'foo_line_selection\')\n
......
...@@ -109,6 +109,7 @@ ...@@ -109,6 +109,7 @@
)\n )\n
\n \n
d.update(context.REQUEST)\n d.update(context.REQUEST)\n
d.update(kw)\n
#context.log(\'ListBox_setPropertyList\', \'kw = %r, d = %r\' % (kw, d,))\n #context.log(\'ListBox_setPropertyList\', \'kw = %r, d = %r\' % (kw, d,))\n
r = context.form.validate(d)\n r = context.form.validate(d)\n
context.manage_edit_xmlrpc(r)\n context.manage_edit_xmlrpc(r)\n
...@@ -166,7 +167,7 @@ return \'Set Successfully.\'\n ...@@ -166,7 +167,7 @@ return \'Set Successfully.\'\n
<string>dict</string> <string>dict</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>d</string> <string>d</string>
<string>context</string> <string>context</string>
<string>r</string> <string>r</string>
</tuple> </tuple>
</value> </value>
......
2006-07-12 yo
* Do not reset selections if not present in ListBoxZuite_reset.
* Accept keyword parameters in ListBox_setPropertyList.
2006-07-12 yo 2006-07-12 yo
* Add missing properties to Listbox_setPropertyList. * Add missing properties to Listbox_setPropertyList.
......
5 11
\ No newline at end of file \ 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