Commit a35df384 authored by Jean-Paul Smets's avatar Jean-Paul Smets

2006-10-05 Kevin

* Minor fixes.
* Don't show unvisible object in sub_web_object_list (thanks to Kristian).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12147 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dc669b40
......@@ -60,7 +60,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Edit</string> </value>
<value> <string>View</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
......
......@@ -42,23 +42,23 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>related</string> </value>
<value> <string>view_editor</string> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>View</string>
<string>Modify portal content</string>
</tuple>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>4.0</float> </value>
<value> <float>1.1</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Related Documents</string> </value>
<value> <string>Edit</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
......@@ -81,7 +81,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/Document_viewRelated</string> </value>
<value> <string>string:${object_url}/WebPage_viewEditor</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -26,7 +26,7 @@
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_view</string> </value>
<value> <string>object_list</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
......@@ -42,7 +42,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>render</string> </value>
<value> <string>list</string> </value>
</item>
<item>
<key> <string>permissions</string> </key>
......@@ -54,11 +54,11 @@
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>3.0</float> </value>
<value> <float>100.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Preview</string> </value>
<value> <string>List Content</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
......@@ -81,7 +81,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/WebPage_viewRender</string> </value>
<value> <string>string:${object_url}/WebSection_viewContentList</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -26,13 +26,11 @@
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_web_view</string> </value>
<value> <string>object_action</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -44,7 +42,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>web_view_default_page</string> </value>
<value> <string>new_default_page</string> </value>
</item>
<item>
<key> <string>permissions</string> </key>
......@@ -56,11 +54,11 @@
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>2.0</float> </value>
<value> <float>1.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Web View Default Page</string> </value>
<value> <string>Create Default Web Page</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
......@@ -83,26 +81,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/WebSection_viewAsWebDefaultPage</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python: object is not None and object.WebSite_getDefaultWebPageValue() is not None</string> </value>
<value> <string>string:${object_url}/WebSection_newDefaultWebPage</string> </value>
</item>
</dictionary>
</pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.ActionInformation</string>
<string>ActionInformation</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_action</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>new_page</string> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>View</string>
</tuple>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>1.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Create New Web Page</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/WebSection_newWebPage</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -58,7 +58,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Section Contents</string> </value>
<value> <string>Content</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
......@@ -81,7 +81,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/WebSection_viewContentList</string> </value>
<value> <string>string:${object_url}/WebSection_viewContent</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -102,7 +102,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python: not (hasattr(request, \'web_site_value\') and not (getattr(request, \'ignore_layout\', False) or getattr(request, \'editable_mode\', False)))</string> </value>
<value> <string>python: not (hasattr(request, \'current_web_section\') and not (getattr(request, \'ignore_layout\', False) or getattr(request, \'editable_mode\', False)))</string> </value>
</item>
</dictionary>
</pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.ActionInformation</string>
<string>ActionInformation</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_action</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>new_default_page</string> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>View</string>
</tuple>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>10.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Create Default Web Page</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/WebSection_newDefaultWebPage</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -102,7 +102,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python: not (hasattr(request, \'web_site_value\') and not (getattr(request, \'ignore_layout\', False) or getattr(request, \'editable_mode\', False)))</string> </value>
<value> <string>python: not (hasattr(request, \'current_web_section\') and not (getattr(request, \'ignore_layout\', False) or getattr(request, \'editable_mode\', False)))</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -9,12 +9,12 @@
<portal_type id="Web Section">
<item>Web Section</item>
<item>File</item>
<item>Web Page</item>
<item>Image</item>
</portal_type>
<portal_type id="Web Site">
<item>Web Container</item>
<item>Web Section</item>
<item>Image</item>
<item>File</item>
</portal_type>
<portal_type id="Web Site Module">
<item>Web Site</item>
......
......@@ -64,7 +64,7 @@
</item>
<item>
<key> <string>content_meta_type</string> </key>
<value> <string>ERP5 Document</string> </value>
<value> <string>ERP5 Text Document</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -72,7 +72,7 @@
</item>
<item>
<key> <string>factory</string> </key>
<value> <string>addDocument</string> </value>
<value> <string>addTextDocument</string> </value>
</item>
<item>
<key> <string>filter_content_types</string> </key>
......@@ -100,6 +100,10 @@
<key> <string>init_script</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>permission</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>property_sheet_list</string> </key>
<value>
......
......@@ -79,7 +79,7 @@
</item>
<item>
<key> <string>content_icon</string> </key>
<value> <string>document.gif</string> </value>
<value> <string>web_section.png</string> </value>
</item>
<item>
<key> <string>content_meta_type</string> </key>
......@@ -117,6 +117,10 @@
<key> <string>init_script</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>permission</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>property_sheet_list</string> </key>
<value>
......
......@@ -60,7 +60,7 @@
</item>
<item>
<key> <string>content_icon</string> </key>
<value> <string>document.gif</string> </value>
<value> <string>web_site.png</string> </value>
</item>
<item>
<key> <string>content_meta_type</string> </key>
......@@ -98,6 +98,10 @@
<key> <string>init_script</string> </key>
<value> <string>WebSite_init</string> </value>
</item>
<item>
<key> <string>permission</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>property_sheet_list</string> </key>
<value>
......
......@@ -67,7 +67,7 @@
isRegisteredPA python: test(here.Title() and here.meta_type==\'PloneArticle\', 1,0);\n
path_user python: test(isInFactory or isRegisteredFolder or isRegisteredPA,request.URLPATH1,request.URLPATH2);\n
cols cols | python: 40;\n
rows rows | python: 20;\n
rows rows | python: 18;\n
editor_width width | python: int(cols * 19.5);\n
editor_height height | python: int(rows * 24);\n
editor_width python: str(editor_width).replace(\'px\',\'\');\n
......@@ -83,7 +83,7 @@ oFCKeditor.BasePath = \'${portal_path}\';\n
oFCKeditor.Value = \'${cleaninput}\';\n
\n
// set the css for editor area\n
oFCKeditor.Config[\'EditorAreaCSS\'] = \'${portal_path}css/medicentre.css\';\n
oFCKeditor.Config[\'EditorAreaCSS\'] = \'${portal_path}/erp5_editor.css\';\n
\n
// editor appearance\n
oFCKeditor.ToolbarSet = \'ERP5WebZopeCmf\';\n
......
......@@ -132,7 +132,7 @@ context.REQUEST[\'RESPONSE\'].redirect(redir)\n
<string>edit_document_url</string>
<string>kw</string>
<string>getattr</string>
<string>context</string>
<string>context</string>
<string>edit_method</string>
<string>_apply_</string>
<string>base_value</string>
......
......@@ -132,7 +132,7 @@ context.REQUEST[\'RESPONSE\'].redirect(redir)\n
<string>view_document_url</string>
<string>kw</string>
<string>getattr</string>
<string>context</string>
<string>context</string>
<string>edit_method</string>
<string>_apply_</string>
<string>base_value</string>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<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_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 encoding="cdata"><![CDATA[
"""\n
This script repeats publication section items\n
in such way that it is possible to select multiple\n
publication sections for a single web page.\n
"""\n
# Initialise result\n
sub_field_list = []\n
\n
# Maximum size of the MultiListField\n
default_sub_field_property_dict.update({\n
\'title\': \'Publication\',\n
\'required\': 0,\n
\'field_type\': \'ListField\',\n
\'size\': 1,\n
\'item_list\': [(\'\', \'\')] + item_list,\n
\'value\': None,\n
})\n
\n
z = 0\n
for i in range(1):\n
new_dict = default_sub_field_property_dict.copy()\n
new_dict[\'title\'] = \'&nbsp;\'\n
new_dict[\'key\'] = str(z)\n
z += 1\n
sub_field_list.append(new_dict)\n
\n
\n
section_list = context.getPublicationSectionList()\n
section_list.reverse()\n
for value in section_list:\n
new_dict = default_sub_field_property_dict.copy()\n
new_dict[\'value\'] = value\n
new_dict[\'title\'] = \'&nbsp;\'\n
new_dict[\'key\'] = str(z)\n
z += 1\n
sub_field_list.append(new_dict)\n
\n
new_dict[\'title\'] = \'Publication Section\'\n
sub_field_list.reverse()\n
return sub_field_list\n
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>item_list, value_list, default_sub_field_property_dict={}, is_right_display=0</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>4</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>item_list</string>
<string>value_list</string>
<string>default_sub_field_property_dict</string>
<string>is_right_display</string>
<string>sub_field_list</string>
<string>_getattr_</string>
<string>None</string>
<string>z</string>
<string>_getiter_</string>
<string>range</string>
<string>i</string>
<string>new_dict</string>
<string>_write_</string>
<string>str</string>
<string>context</string>
<string>section_list</string>
<string>value</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<dictionary/>
<int>0</int>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebPage_hashPublicationSectionItemList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -64,7 +64,7 @@
<string>left (Page Properties)</string>
<string>right (Publication)</string>
<string>center</string>
<string>bottom</string>
<string>bottom (Content)</string>
</list>
</value>
</item>
......@@ -73,7 +73,7 @@
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<key> <string>bottom (Content)</string> </key>
<value>
<list>
<string>my_text_content</string>
......
......@@ -61,6 +61,8 @@
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
<string>right</string>
<string>bottom</string>
</list>
</value>
......@@ -70,13 +72,29 @@
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<key> <string>bottom</string> </key>
<value>
<list>
<string>listbox</string>
</list>
</value>
</item>
<item>
<key> <string>left</string> </key>
<value>
<list>
<string>my_title</string>
</list>
</value>
</item>
<item>
<key> <string>right</string> </key>
<value>
<list>
<string>my_reference</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.Form</string>
<string>ERP5Form</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/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string>Base_edit</string> </value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>left (Page Properties)</string>
<string>right (Publication)</string>
<string>center</string>
<string>bottom</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<value>
<list>
<string>my_text_content</string>
</list>
</value>
</item>
<item>
<key> <string>center</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>left (Page Properties)</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>right (Publication)</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebPage_viewEditor</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>WebPage_view</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_view</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Web Page</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -120,10 +120,15 @@ portal_catalog = container.portal_catalog\n
# First find the Web Section or Web Site we belong to\n
current_section = context.getWebSectionValue()\n
\n
# Build the list of parameters\n
if not kw.has_key(\'validation_state\'):\n
kw[\'validation_state\'] = [\'draft\', \'submitted\', \'shared\',\n
\'released\', \'published\', \'restricted\']\n
if not kw.has_key(\'order_by\'):\n
kw[\'order_by\'] = [(\'int_index\', \'descending\')]\n
\n
# Return the list of matching documents for the given states\n
return current_section.searchResults(validation_state=[\'draft\', \'submitted\', \'shared\',\n
\'released\', \'published\', \'restricted\'],\n
order_by=[(\'int_index\', \'descending\')])\n
return current_section.searchResults(**kw)\n
</string> </value>
</item>
<item>
......@@ -178,6 +183,8 @@ return current_section.searchResults(validation_state=[\'draft\', \'submitted\',
<string>portal_catalog</string>
<string>context</string>
<string>current_section</string>
<string>_write_</string>
<string>_apply_</string>
</tuple>
</value>
</item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<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_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>request = context.REQUEST\n
portal = context.getPortalObject()\n
title = context.getTitle(\'Unknown\')\n
translateString = context.Base_translateString\n
web_page_module = portal.getDefaultModule(\'Web Page\')\n
\n
# Find the applicable language\n
language = portal.Localizer.get_selected_language()\n
\n
# Create a new empty page\n
web_page = web_page_module.newContent(portal_type = \'Web Page\', \n
title="Default Page for Section %s" % title,\n
reference="default-%s" % context.getId(),\n
version="1", language=language)\n
\n
# Create relation between section and page\n
context.setDefaultAggregateValue(web_page)\n
\n
# Return the new page in the section context\n
return web_page.Base_redirect(\'view\',\n
keep_items = dict(portal_status_message = translateString("New default Web Page for section ${web_section}.",\n
mapping = dict(web_section = title))))\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></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>_getattr_</string>
<string>context</string>
<string>request</string>
<string>portal</string>
<string>title</string>
<string>translateString</string>
<string>web_page_module</string>
<string>language</string>
<string>web_page</string>
<string>dict</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>WebSection_newDefaultWebPage</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<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_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>request = context.REQUEST\n
portal = context.getPortalObject()\n
title = context.getTitle(\'Unknown\')\n
translateString = context.Base_translateString\n
web_page_module = portal.getDefaultModule(\'Web Page\')\n
\n
# Find the applicable language\n
language = portal.Localizer.get_selected_language()\n
\n
# Create a new empty page\n
web_page = web_page_module.newContent(portal_type = \'Web Page\', \n
title="New Page of Section %s" % title,\n
reference="default-%s" % context.getId(),\n
version="1", language=language)\n
\n
# Copy categories into new Web Page\n
category_list = context.getMembershipCriterionCategoryList()\n
web_page.setCategoryList(category_list)\n
\n
# Create relation between section and page\n
context.setDefaultAggregateValue(web_page)\n
\n
# Return the new page in the section context\n
return web_page.Base_redirect(\'view\',\n
keep_items = dict(portal_status_message = translateString("New Web Page of section ${web_section}.",\n
mapping = dict(web_section = title))))\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></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>_getattr_</string>
<string>context</string>
<string>request</string>
<string>portal</string>
<string>title</string>
<string>translateString</string>
<string>web_page_module</string>
<string>language</string>
<string>web_page</string>
<string>category_list</string>
<string>dict</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>WebSection_newWebPage</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -82,7 +82,7 @@
<key> <string>bottom</string> </key>
<value>
<list>
<string>physical_subcontent_listbox</string>
<string>listbox</string>
</list>
</value>
</item>
......@@ -98,11 +98,11 @@
<key> <string>left</string> </key>
<value>
<list>
<string>my_title</string>
<string>my_id</string>
<string>my_title</string>
<string>my_short_title</string>
<string>my_container_layout</string>
<string>my_content_layout</string>
<string>my_visible</string>
</list>
</value>
</item>
......@@ -110,8 +110,9 @@
<key> <string>right</string> </key>
<value>
<list>
<string>my_int_index</string>
<string>my_aggregate_title_list</string>
<string>my_int_index</string>
<string>my_visible</string>
</list>
</value>
</item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.Form</string>
<string>ERP5Form</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/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string>Base_edit</string> </value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
<string>bottom</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<value>
<list>
<string>dynamic_subcontent_listbox</string>
</list>
</value>
</item>
<item>
<key> <string>left</string> </key>
<value>
<list>
<string>my_title</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSection_viewContent</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>WebSection_viewContentList</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_view</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Web Section</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -4,8 +4,8 @@
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.ImageField</string>
<string>ImageField</string>
<string>Products.Formulator.StandardFields</string>
<string>StringField</string>
</tuple>
<none/>
</tuple>
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>listbox_caption</string> </value>
<value> <string>my_title</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -83,18 +83,6 @@
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>image_display</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>image_format</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>image_resolution</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>max_length</string> </key>
<value> <string></string> </value>
......@@ -136,9 +124,7 @@
</item>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -172,18 +158,6 @@
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>image_display</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>image_format</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>image_resolution</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>max_length</string> </key>
<value> <string></string> </value>
......@@ -237,7 +211,7 @@
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>20</int> </value>
<value> <int>40</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
......@@ -259,18 +233,6 @@
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>image_display</string> </key>
<value> <string>thumbnail</string> </value>
</item>
<item>
<key> <string>image_format</string> </key>
<value> <string>png</string> </value>
</item>
<item>
<key> <string>image_resolution</string> </key>
<value> <int>75</int> </value>
</item>
<item>
<key> <string>max_length</string> </key>
<value> <string></string> </value>
......@@ -281,7 +243,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Caption</string> </value>
<value> <string>Title</string> </value>
</item>
<item>
<key> <string>truncate</string> </key>
......@@ -301,23 +263,4 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>cell/absolute_url</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -47,7 +47,7 @@
</item>
<item>
<key> <string>action</string> </key>
<value> <string>Base_edit</string> </value>
<value> <string>Base_doSelect</string> </value>
</item>
<item>
<key> <string>encoding</string> </key>
......@@ -61,7 +61,6 @@
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
<string>bottom</string>
</list>
</value>
......@@ -71,18 +70,10 @@
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<key> <string>bottom</string> </key>
<value>
<list>
<string>dynamic_subcontent_listbox</string>
</list>
</value>
</item>
<item>
<key> <string>left</string> </key>
<value>
<list>
<string>my_title</string>
<string>listbox</string>
</list>
</value>
</item>
......@@ -103,7 +94,7 @@
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_view</string> </value>
<value> <string>form_list</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>OFS.Image</string>
<string>Image</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>web_section.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAAmxJREFU
eJyFk01IVFEUx3935vmROdrYB0pZVouMRIIKKggtRZIISSVQKV3YKqhctJBcRIswWswiLKEWLpKg
CGyjUUQZRIhSZipIYTkpavgxjDPzZt57990Wb2SaBDtwuHA5557//3fvFcSj4eGcQoEAlBCAAqD7
Uq7gf1HfOaNiUqmYpRJrPOs7Z9Rq3exVCqZ8J2/2ns675stmE4Co6/Crzub8xGnx4asaHjwdYiS4
DSXgvHaLqpKPsOEuL9s7mOju9WpIC12uVaUUCAFN1YedjWgA7+RzGAvA3DkKI1k8aRte1mxpETbX
8Sfgyn0/tW4fjZUBWAHmXfRFy1iSXjQlLUJWknpnjdtofeSnpXoLJYsvYE4DWxCa1Shqaaf3LWjK
loQMp+t2l3+NgMbKHErUM9xb52E2A5ZTGN1Rw0JGAeBHU1ISssDXNcmZsj1cPrrWxfLrO3hzPOBW
hH6n8XlvHXYQpCnRlDRZMcCKWcwG4carVYoOxF3RfpqLTfjpgUgKX8R+pvNLIQhmzIxbMMHUDeZW
4gBIwGjIvIeI5oAwMAJp9HkuMh+vM3XDgRi2wNANFvXk5gJjmMJDAVj2gBIM/5CMHqhCREAaUfSl
BYdBxIRYJEbPhWTv1sQHRGo+iADYWWw/VcHj4yF0XWdw8DutkQguZTt3aISNNfCMiAesCkgrYvy9
H3dxOaFQGCltR6i9EU1Jm6WYo2Bg4FvSAdGRGY6Un+DXuwHG85rI+DT5z4CYg+zs9T71dchK2Beg
UOzLHOOY6w0906Uspe8k8dxcuNzpTPXXrP9T2w7m1hansRs8m53M9gKpf9f8AaBwLTq2en+SAAAA
AElFTkSuQmCC</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>16</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>693</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Web Section Icon</string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>16</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>OFS.Image</string>
<string>Image</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>web_site.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAAoVJREFU
eJyFk01IVFEUx39v5jmOzaRWhlpgWorYQitauLZd1sYgyIiMaGUURS6ibbRtZQm5sKiEgrIgDalF
oYURRB8YOmnNjJ+l4/jxZnwf950WbzIk0gOXc889/P/nf869VyNjx29NCQIaIJoGCAD3zhRprGeN
beNiKhHTkb8+sxrbxmUtrH6sNSY3T21j2cmcZIr/0VAdmoDWqIgGGhqCrOTvN+/QdJRDWv3LLAKa
Bk0N+70YL/Y2nhM1KrqrHAx7DY0anLsR+0/Sjy7KYclZpd7zGZmX22NcaCigrnzDKuhAHK52xtDF
VSxZHupax+pKy8YS9ZUGs8NJ+pIbcRyX6M8U004eFZUl3hBFKZYcuN4xSv2BnTTXeuD4ZJJnLyc5
erAa11Xofj8+v489rjAaS/DkcxRlu+iibBYtcEyHyQW40usRRLpf09JUQ/+7L9hKo3ZvBYFAFpat
yAsHyVv8gTGXk2nBBjttMbXotZKaT1KQIzzu7kOy8jl2eB/hcBDXFSxbYVqKLbkhzOlv+EQ5GA5Y
aYvZNMymIPLxK4UF+ZSW7OLrcJynLwYZm0wSzPbj82mYpsJRwkbd9WaQssFMmXSd8OTf9IExH6Bo
62bKisO03n1DV+8H+h6eJ5GYo+12D2WlVUzPLOAT17tDy7BWpn+oroqZpMHwSJwHvRHSyzYj8UUG
I794/mqIsekUm3JD2JKNLsolYXoKBgYiKyQziQU+DY4RCAQJh3SCAZ0TFztJmza7y4u4fucl5NSg
ARxu6ZHP751VT1a5JkFfjLLtuZQU5yMCynVJLqSJRGeYMwqY6D+prftVT1961L69MP9IKJiNsWwy
9H3qY+xH4uTb7rNRgN9hF1c77JTdMgAAAABJRU5ErkJggg==</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>16</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>718</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Web Site Icon</string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>16</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -118,7 +118,7 @@ return context.Base_cloneContent(clone=0)\n
<value>
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>context</string>
</tuple>
</value>
</item>
......
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