[Erp5-report] r38606 ivan - in /erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_k...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 24 08:33:47 CEST 2010
Author: ivan
Date: Fri Sep 24 08:33:46 2010
New Revision: 38606
URL: http://svn.erp5.org?rev=38606&view=rev
Log:
History gadget uses listbox. Deprecate admin gadget toolbox.
Removed:
erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/Base_viewToolboxGadget/
erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/Base_viewToolboxGadget.xml
erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/Document_viewHistoryGadget/document_history.xml
erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/WebSection_viewSubsectionListRenderer.xml
erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/admin_toolbox.xml
Removed: erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/Base_viewToolboxGadget.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/Base_viewToolboxGadget.xml?rev=38605&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/Base_viewToolboxGadget.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/Base_viewToolboxGadget.xml (removed)
@@ -1,123 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <tuple>
- <global name="ERP5Form" module="Products.ERP5Form.Form"/>
- <tuple/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <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></string> </value>
- </item>
- <item>
- <key> <string>description</string> </key>
- <value> <string></string> </value>
- </item>
- <item>
- <key> <string>edit_order</string> </key>
- <value>
- <list/>
- </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>gadget</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>groups</string> </key>
- <value>
- <dictionary>
- <item>
- <key> <string>gadget</string> </key>
- <value>
- <list>
- <string>admin_toolbox</string>
- </list>
- </value>
- </item>
- </dictionary>
- </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>Base_viewToolboxGadget</string> </value>
- </item>
- <item>
- <key> <string>method</string> </key>
- <value> <string>POST</string> </value>
- </item>
- <item>
- <key> <string>name</string> </key>
- <value> <string>Document_viewProfileRenderer</string> </value>
- </item>
- <item>
- <key> <string>pt</string> </key>
- <value> <string>gadget_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>Admin Toolbox</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>
Removed: erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/Document_viewHistoryGadget/document_history.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/Document_viewHistoryGadget/document_history.xml?rev=38605&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/Document_viewHistoryGadget/document_history.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/Document_viewHistoryGadget/document_history.xml (removed)
@@ -1,99 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <tuple>
- <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
- <tuple/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <item>
- <key> <string>delegated_list</string> </key>
- <value>
- <list>
- <string>css_class</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>document_history</string> </value>
- </item>
- <item>
- <key> <string>message_values</string> </key>
- <value>
- <dictionary>
- <item>
- <key> <string>external_validator_failed</string> </key>
- <value> <string>The input failed the external validator.</string> </value>
- </item>
- </dictionary>
- </value>
- </item>
- <item>
- <key> <string>overrides</string> </key>
- <value>
- <dictionary>
- <item>
- <key> <string>field_id</string> </key>
- <value> <string></string> </value>
- </item>
- <item>
- <key> <string>form_id</string> </key>
- <value> <string></string> </value>
- </item>
- <item>
- <key> <string>target</string> </key>
- <value> <string></string> </value>
- </item>
- </dictionary>
- </value>
- </item>
- <item>
- <key> <string>tales</string> </key>
- <value>
- <dictionary>
- <item>
- <key> <string>field_id</string> </key>
- <value> <string></string> </value>
- </item>
- <item>
- <key> <string>form_id</string> </key>
- <value> <string></string> </value>
- </item>
- <item>
- <key> <string>target</string> </key>
- <value> <string></string> </value>
- </item>
- </dictionary>
- </value>
- </item>
- <item>
- <key> <string>values</string> </key>
- <value>
- <dictionary>
- <item>
- <key> <string>css_class</string> </key>
- <value> <string>hidden_label history-gadget</string> </value>
- </item>
- <item>
- <key> <string>field_id</string> </key>
- <value> <string>document_history</string> </value>
- </item>
- <item>
- <key> <string>form_id</string> </key>
- <value> <string>WebSection_viewKMWidgetFieldLibrary</string> </value>
- </item>
- <item>
- <key> <string>target</string> </key>
- <value> <string>Click to edit the target</string> </value>
- </item>
- </dictionary>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/WebSection_viewSubsectionListRenderer.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/WebSection_viewSubsectionListRenderer.xml?rev=38605&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/WebSection_viewSubsectionListRenderer.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/WebSection_viewSubsectionListRenderer.xml (removed)
@@ -1,86 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <tuple>
- <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
- <tuple/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <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[
-
-<tal:block replace="nothing">\n
- <!--\n
- This widget displays the list of Sections contained in the current context.\n
- -->\n
-</tal:block>\n
-\n
-<tal:block tal:define="section_list python:here.contentValues(portal_type=\'Web Section\',\n
- checked_permission=\'View\')">\n
- <ul>\n
- <li tal:repeat="section section_list">\n
- <a tal:attributes="href python: section.absolute_url()"\n
- tal:content="python: section.getProperty(\'translated_short_title\', None)\n
- or section.getTranslatedTitleOrId()"/>\n
- </li>\n
- </ul>\n
-\n
- <div tal:condition="python: len(section_list)==0">\n
- <p i18n:domain="erp5_ui" i18n:translate=""> No subsections found. </p>\n
- </div>\n
-\n
-</tal:block>\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>WebSection_viewSubsectionListRenderer</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>deprecated</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/admin_toolbox.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/admin_toolbox.xml?rev=38605&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/admin_toolbox.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/admin_toolbox.xml (removed)
@@ -1,251 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <tuple>
- <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
- <tuple/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <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[
-
-<!-- Floating Panel -->\n
-\n
-<!-- header_definitions must be re-called and is_web_mode redefined because calling\n
- the current page template through editor_field in the form layout seems to reset\n
- the context needed by action drop-down list.\n
-\n
- TODO: Is this case should be handle by automatically by erp5_xhtml_style ?\n
- More translation is required.\n
--->\n
-\n
-<tal:block\n
- tal:define="is_web_mode python: True;\n
- actions request/actions | python:\n
- here.Base_filterDuplicateActions(\n
- here.portal_actions.listFilteredActionsFor(here));\n
- dummy python:request.set(\'actions\', actions);\n
- portal_type here/getPortalType">\n
-\n
- <!-- XXX is this really useful - called how many times ?? - tried to removed but failed -->\n
- <!-- <tal:block metal:use-macro="here/global_definitions/macros/header_definitions"/> -->\n
-\n
-\n
- <!-- Edit button menu -->\n
- <div class="inner section">\n
- <h3 i18n:translate="" i18n:domain="ui">Edit</h3>\n
- <tal:block tal:define="edit_link_list python: here.Base_getAdminToolboxEditShortcutList()">\n
- <tal:block tal:repeat="link edit_link_list">\n
- <a tal:attributes="href python: link[\'url\']" class=\'bt-edit\'>\n
-<strong>\n
- <img tal:attributes="src python: link[\'icon\'];\n
- title python: link[\'label\'];\n
- alt python: \'%s Icon\' % link[\'label\'];"/>\n
- <tal:block tal:replace="python: link[\'title\']"/>\n
-</strong>\n
-\n
-\n
- </a>\n
- </tal:block>\n
- </tal:block>\n
- </div>\n
-\n
- <!-- A pop-up menu with all actions which can be applied to\n
- the current object and which have no button equivalent\n
-\n
- We need to setup the actions variable from the request because\n
- this template is called from outside the main rendering process\n
-\n
- XXX - the location of context_box_render is hardcoded.\n
- -->\n
- <div class="inner section">\n
- <h3><tal:block tal:content="portal_type"/> Actions</h3>\n
- <tal:block metal:use-macro="here/portal_skins/erp5_xhtml_style/context_box_render/macros/action"/>\n
- </div>\n
-\n
- <!-- Document creation panel.\n
- \n
- This part is displayed for any document apart Web Site and Web Section.\n
- But if Web Site and Web Section have a default page, then it will be displayed anyway\n
- in order to let the user clone the default page.\n
-\n
- XXX - This is not so good to create new content in a section\n
- Behaviour should be to create content in section / site\n
- -->\n
- <div class="inner section"\n
- tal:condition="python: here.isDocument">\n
- <h3>\n
- <span id="create_new_document_title"></span>\n
- <span id="clone_document_title">\n
- <tal:block \n
- tal:replace="python: \'Clone %s\' % portal_type"/>\n
- </span>\n
- </h3>\n
-\n
- <fieldset>\n
-\n
- <div class="field">\n
- <label i18n:translate="" i18n:domain="ui">Title</label>\n
- <div class="input">\n
- <input class="input" size="12" \n
- type="text" name="clone_title"\n
- tal:attributes="value here/getTitle | nothing"/>\n
- </div>\n
- </div>\n
-\n
- <div class="field">\n
- <label i18n:translate="" i18n:domain="ui">Reference</label>\n
- <div class="input">\n
- <input class="input" size="12" \n
- type="text" name="clone_reference"\n
- tal:attributes="value here/getReference | nothing"/>\n
- </div>\n
- </div>\n
-\n
- <div class="field">\n
- <label i18n:translate="" i18n:domain="ui">Version</label>\n
- <div class="input">\n
- <input class="input" size="5" \n
- type="text" name="clone_version"\n
- tal:attributes="value here/getVersion | nothing"/>\n
- </div>\n
- </div>\n
-\n
- <div class="field">\n
- <label i18n:translate="" i18n:domain="ui">Language</label>\n
- <div class="input">\n
- <input class="input" size="5" \n
- type="text" name="clone_language"\n
- tal:attributes="value here/getLanguage | nothing"/>\n
- </div>\n
- </div>\n
-\n
- <div class="field">\n
- <label i18n:translate="" i18n:domain="ui">Portal type</label>\n
- <div class="input">\n
- <select class="input" name="clone_portal_type" \n
- size="1" onchange="setCreationMode(this)">\n
- <option value="None" selected="selected">— Same as Current —</option>\n
- <option tal:repeat="portal_type python: here.getPortalWebDocumentTypeList()"\n
- tal:content="portal_type"\n
- tal:attributes="value portal_type"\n
- i18n:translate="" i18n:domain="ui">portal_type</option>\n
- </select>\n
- </div>\n
- </div>\n
-\n
- <br />\n
- <div class="clone-button">\n
- <div class="input">\n
- <button id="bt-clone" class="bt-med"\n
- title=\'Clone & Edit\'\n
- name="Base_cloneContent:method">\n
- <span id="duplicate_document_action">Clone & Edit</span>\n
- </button>\n
- </div>\n
- </div>\n
-\n
- </fieldset>\n
-\n
- <script type="text/javascript">\n
- <!--\n
- // preload action icons\n
- if (document.images) {\n
- clone_icon = new Image();\n
- new_icon = new Image();\n
- clone_icon.src = "admin_toolbox_clone_document.png";\n
- new_icon.src = "admin_toolbox_new_document.png";\n
- }\n
-\n
- function setCreationMode (sel) {\n
- // default is cloning\n
- var action = \'clone\';\n
- var action_name = \'Clone & Edit\';\n
- var icon = \'admin_toolbox_clone_document.png\';\n
- var name = \'Base_cloneContent:method\';\n
- var clone_display = \'inline\';\n
- var new_title = \'\';\n
-\n
- // a portal type is given, so create a new document\n
- var portal_type = sel.options[sel.selectedIndex].value;\n
- if (portal_type != \'None\') {\n
- action = \'new\'\n
- action_name = \'Create New & Edit\';\n
- icon = \'admin_toolbox_new_document.png\';\n
- name = \'Base_newContent:method\';\n
- clone_display = \'none\';\n
- new_title = \'Create New Document\';\n
- }\n
-\n
- // update action dependent values\n
- document.getElementById(\'create_new_document_title\').innerHTML = new_title;\n
- document.getElementById(\'clone_document_title\' ).style.display = clone_display;\n
- document.getElementById(\'duplicate_document_action\').innerHTML = action_name;\n
-\n
- // replace the action icon\n
- document.getElementById(\'clone_action_icon\').src = eval(action + "_icon.src");\n
-\n
- // update action button alt & title\n
- var button = document.getElementById(\'clone_action_button\');\n
- button.alt = action_name;\n
- button.title = action_name;\n
- button.name = name;\n
- }\n
- -->\n
- </script>\n
- </div>\n
-</tal:block>\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>admin_toolbox</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Deprecated</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
More information about the Erp5-report
mailing list