[Erp5-report] r9425 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplate...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Aug 25 11:14:48 CEST 2006
Author: kevin
Date: Fri Aug 25 11:14:45 2006
New Revision: 9425
URL: http://svn.erp5.org?rev=9425&view=rev
Log:
Move hidden input and globals definition code to separate file.
Added:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/global_definitions.xml
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/version
Added: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/global_definitions.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/global_definitions.xml?rev=9425&view=auto
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/global_definitions.xml (added)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/global_definitions.xml Fri Aug 25 11:14:45 2006
@@ -1,0 +1,106 @@
+<?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[
+
+\n
+<tal:block metal:define-macro="header_definitions">\n
+ <tal:block tal:define="\n
+ cancel_url request/cancel_url | request/ACTUAL_URL;\n
+ local_parameter_list local_parameter_list | python: {};\n
+ dummy python: local_parameter_list.update({\'cancel_url\': cancel_url});\n
+\n
+ global actions python: here.getPortalObject().portal_actions.listFilteredActionsFor(here);\n
+ global url python: \'%s%s\' % (request[\'SERVER_URL\'], here.getPath(), );\n
+ global current_form_id python: local_parameter_list.get(\'dialog_id\', local_parameter_list.get(\'form_id\', \'view\'));\n
+ global current_url python: \'%s/%s\' % (url, current_form_id);\n
+ global current_action python: here.ERP5XhtmlStyle_getCurrentAction(current_url, actions);\n
+\n
+ dummy python: request.set(\'here\', here);\n
+\n
+ global css_list css_list | python: [];\n
+ dummy python: css_list.append(\'%s/erp5.css\' % (here.portal_url.getPortalPath(), ));\n
+\n
+ global js_list js_list | python: [];\n
+ dummy python: js_list.append(\'%s/erp5.js\' % (here.portal_url.getPortalPath(), ));\n
+\n
+ global http_parameter_list request/form/copy;\n
+ http_parameter_list python: here.ERP5XhtmlStyle_filterParameterList(http_parameter_list);\n
+ dummy python: http_parameter_list.update(local_parameter_list);\n
+ global http_parameters python: here.ERP5XhtmlStyle_renderHTTPParameterList(http_parameter_list);\n
+ "/>\n
+</tal:block>\n
+\n
+\n
+<tal:block metal:define-macro="http_definitions">\n
+ <tal:block tal:repeat="parameter http_parameter_list/items">\n
+ <tal:block tal:condition="python: same_type(parameter[1], [])">\n
+ <tal:block tal:repeat="list_item python: parameter[1]">\n
+ <input type="hidden"\n
+ tal:condition="python: list_item is not None"\n
+ tal:attributes="name python: \'%s:list\' % (parameter[0], );\n
+ value python: list_item;"/>\n
+ </tal:block>\n
+ </tal:block>\n
+ <input type="hidden"\n
+ tal:condition="python: not same_type(parameter[1], []) and parameter[1] is not None"\n
+ tal:attributes="name python: parameter[0];\n
+ value python: parameter[1];"/>\n
+ </tal:block>\n
+</tal:block>
+
+]]></string> </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>global_definitions</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml?rev=9425&r1=9424&r2=9425&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml Fri Aug 25 11:14:45 2006
@@ -75,29 +75,11 @@
- Add callbacks to ERP5Form object (selection ?) to gather needed fields -> put them in http_parameter_list.\n
-->\n
</tal:block>\n
+\n
<tal:block metal:define-macro="master">\n
-<tal:block tal:define="\n
- cancel_url request/cancel_url | request/ACTUAL_URL;\n
- local_parameter_list local_parameter_list | python: {};\n
- dummy python: local_parameter_list.update({\'cancel_url\': cancel_url});\n
-\n
- global actions python: here.getPortalObject().portal_actions.listFilteredActionsFor(here);\n
- global url python: \'%s%s\' % (request[\'SERVER_URL\'], here.getPath(), );\n
- global current_form_id python: local_parameter_list.get(\'dialog_id\', local_parameter_list.get(\'form_id\', \'view\'));\n
- global current_url python: \'%s/%s\' % (url, current_form_id);\n
- global current_action python: here.ERP5XhtmlStyle_getCurrentAction(current_url, actions);\n
- dummy python: request.set(\'here\', here);\n
- global css_list css_list | python: [];\n
- dummy python: css_list.append(\'%s/erp5.css\' % (here.portal_url.getPortalPath(), ));\n
- global js_list js_list | python: [];\n
- dummy python: js_list.append(\'%s/erp5.js\' % (here.portal_url.getPortalPath(), ));\n
-\n
-\n
- global http_parameter_list request/form/copy;\n
- http_parameter_list python: here.ERP5XhtmlStyle_filterParameterList(http_parameter_list);\n
- dummy python: http_parameter_list.update(local_parameter_list);\n
- global http_parameters python: here.ERP5XhtmlStyle_renderHTTPParameterList(http_parameter_list);\n
- " />\n
+\n
+<tal:block metal:use-macro="here/global_definitions/macros/header_definitions"/>\n
+\n
<?xml version="1.0" encoding="UTF-8"?>\n
<!DOCTYPE html\n
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n
@@ -149,20 +131,10 @@
<input tal:condition="form_action | nothing"\n
id="hidden_button" type="submit" value="dummy"\n
tal:attributes="name python: \'%s:method\' % (form_action, )" />\n
+\n
<!-- Generic way of specifying http parameters -->\n
- <tal:block tal:repeat="parameter http_parameter_list/items">\n
- <tal:block tal:condition="python: same_type(parameter[1], [])">\n
- <tal:block tal:repeat="list_item python: parameter[1]">\n
- <input tal:condition="python: list_item is not None"\n
- tal:attributes="name python: \'%s:list\' % (parameter[0], );\n
- value python: list_item;" type="hidden" />\n
- </tal:block>\n
- </tal:block>\n
- <input tal:condition="python: not same_type(parameter[1], []) and parameter[1] is not None"\n
- tal:attributes="name python: parameter[0];\n
- value python: parameter[1];" type="hidden" />\n
-\n
- </tal:block>\n
+ <tal:block metal:use-macro="here/global_definitions/macros/http_definitions"/>\n
+\n
<div id="main_bar">\n
<span class="first">\n
<span id="favourites">\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log?rev=9425&r1=9424&r2=9425&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log Fri Aug 25 11:14:45 2006
@@ -1,3 +1,6 @@
+2006-08-25 Kevin
+* Move hidden input and globals definition code to separate file.
+
2006-08-24 Kevin
* Add a specific div wrapper class to differenciate editable mode.
* Fix generator xhtml tag.
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=9425&r1=9424&r2=9425&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision Fri Aug 25 11:14:45 2006
@@ -1,1 +1,1 @@
-109
+110
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/version
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/version?rev=9425&r1=9424&r2=9425&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/version (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/version Fri Aug 25 11:14:45 2006
@@ -1,1 +1,1 @@
-1.2.10
+1.2.12
More information about the Erp5-report
mailing list