[Erp5-report] r15063 - in /erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jun 29 10:48:43 CEST 2007
Author: ivan
Date: Fri Jun 29 10:48:43 2007
New Revision: 15063
URL: http://svn.erp5.org?rev=15063&view=rev
Log:
Split core script from widgets.
Add comments.
Fix minor bugs.
Add test for shopping cart.
Removed:
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/Base_isWebSiteUser.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/ERP5Type_getSecurityCategoryMapping.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/Person_viewAsWeb/
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/Resource_viewAsShop/
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrderModule_viewAsWebSaleOrderList/
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewAsWeb/
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewCreerFormulaireCMRenderer.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewCustomerRenderer.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewDiscountsRenderer.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShippingRenderer.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShoppingCartRenderer.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShoppingCartWidgetRenderer.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewTaxesRenderer.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewThankYouMessage/
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SessionTool_view/
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_createUserAccount.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_joinForm/
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_login.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_logout.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_validateUserID.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_viewStandardLoginWidgetRenderer.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_field_render.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_form_render.xml
erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_form_view.xml
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/Base_isWebSiteUser.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/Base_isWebSiteUser.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/Base_isWebSiteUser.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/Base_isWebSiteUser.xml (removed)
@@ -1,161 +1,0 @@
-<?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>""" Decide which ERP UI to show to current user. """\n
-portal_membership = context.portal_membership\n
-if portal_membership.isAnonymousUser() or \\\n
- portal_membership.getAuthenticatedMember().has_role((\'Member\', )):\n
- ## Anonymous/Member is likely to be an website visitor\n
- return True\n
-else:\n
- ## for other users show standard ERP5 forms\n
- return False\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>max_long = 10</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>1</int> </value>
- </item>
- <item>
- <key> <string>co_varnames</string> </key>
- <value>
- <tuple>
- <string>max_long</string>
- <string>_getattr_</string>
- <string>context</string>
- <string>portal_membership</string>
- <string>True</string>
- <string>False</string>
- </tuple>
- </value>
- </item>
- </dictionary>
- </state>
- </object>
- </value>
- </item>
- <item>
- <key> <string>func_defaults</string> </key>
- <value>
- <tuple>
- <int>10</int>
- </tuple>
- </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>Base_isWebSiteUser</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Is current user is an web user?</string> </value>
- </item>
- <item>
- <key> <string>warnings</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/ERP5Type_getSecurityCategoryMapping.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/ERP5Type_getSecurityCategoryMapping.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/ERP5Type_getSecurityCategoryMapping.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/ERP5Type_getSecurityCategoryMapping.xml (removed)
@@ -1,153 +1,0 @@
-<?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>""" This script will be used for module-level based security policy.\n
-Do NOT remove it unless you know what you\'re doing! """\n
-\n
-return ((\'ERP5Type_getSecurityCategoryFromAssignment\', [\'function\'] ),)\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>_owner</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/>
- </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>ERP5Type_getSecurityCategoryMapping</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Assignment lookup policy</string> </value>
- </item>
- <item>
- <key> <string>warnings</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewCreerFormulaireCMRenderer.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewCreerFormulaireCMRenderer.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewCreerFormulaireCMRenderer.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewCreerFormulaireCMRenderer.xml (removed)
@@ -1,102 +1,0 @@
-<?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[
-
-<tal:block tal:define="base_url context/absolute_url;\n
- TPE python: options.get(\'TPE\', \'my_merchant_key_location\');\n
- montant python: options.get(\'total\', here.SaleOrder_getShoppingCartTotalPrice(include_shipping=True,\n
- include_taxes=True,\n
- include_currency=True));\n
- reference python: options.get(\'reference\', here.SaleOrder_getShoppingCartId()); \n
- url_retour python: options.get(\'shop_url\', \'http://www.my-shop.com\');\n
- url_retour_ok python: \'%s/%s?payment_successful=1&portal_status_message=Payment accepted.\' \n
- %(base_url, \n
- options.get(\'url_return_ok\', \'Base_externalPaymentHandler\'));\n
- url_retour_err python: \'%s/%s?payment_successful=0&portal_status_message=Payment rejected.\' \n
- %(base_url, \n
- options.get(\'url_return_err\', \'Base_externalPaymentHandler\'));\n
- langue python: options.get(\'language\', \'en\');\n
- code_societe python: options.get(\'code_societe\', \'my_shop_code\');\n
- texte_bouton python: options.get(\'text_button\', \'Secure Online Payment of %s\' %montant);\n
- texte_libre python: options.get(\'text_free\', \'\');">\n
-\n
- <span tal:replace="structure python: here.payment.CreerFormulaireCM(TPE = TPE,\n
- montant = montant,\n
- reference = reference,\n
- texte_libre=texte_libre,\n
- url_retour = url_retour,\n
- url_retour_ok =url_retour_ok,\n
- url_retour_err = url_retour_err,\n
- langue = langue,\n
- texte_bouton= texte_bouton,\n
- code_societe = code_societe)"/>\n
-</tal:block>
-
-]]></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>SaleOrder_viewCreerFormulaireCMRenderer</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>CyberMut button for external payment</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewCustomerRenderer.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewCustomerRenderer.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewCustomerRenderer.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewCustomerRenderer.xml (removed)
@@ -1,110 +1,0 @@
-<?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[
-
-<tal:block tal:define="customer here/SaleOrder_getShoppingCartCustomer">\n
-\n
- <h2>Customer</h2>\n
-\n
- <table>\n
- <tr>\n
- <td>Name:</td>\n
- <td><span tal:content="customer/getTitle"/></td>\n
- </tr>\n
- <tr>\n
- <td>Email:</td>\n
- <td> <span tal:content="customer/getDefaultEmailText"/></td>\n
- </tr>\n
- <tr>\n
- <td>Telephone:</td>\n
- <td> <span tal:content="customer/getDefaultTelephoneText"/></td>\n
- </tr>\n
- <tr>\n
- <td>Address:</td>\n
- <td><span tal:content="customer/getDefaultAddressStreetAddress"/></td>\n
- </tr>\n
- <tr>\n
- <td>City:</td>\n
- <td><span tal:content="customer/getDefaultAddressCity"/>\n
- </td>\n
- </tr>\n
- <tr>\n
- <td>ZIP:</td>\n
- <td><span tal:content="customer/getDefaultAddressZipCode"/>\n
- </td>\n
- </tr>\n
- <tr>\n
- <td>Country:</td>\n
- <td><span tal:content="customer/getDefaultAddressRegionTitle"/></td>\n
- </tr>\n
- </table>\n
-</tal:block>
-
-]]></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>SaleOrder_viewCustomerRenderer</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Customer information custom renderer</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewDiscountsRenderer.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewDiscountsRenderer.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewDiscountsRenderer.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewDiscountsRenderer.xml (removed)
@@ -1,87 +1,0 @@
-<?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[
-
-<tal:block tal:define="discount_info here/Person_getApplicableDiscountInformation;">\n
-\n
- <h2>\n
- <span tal:replace="python: here.Base_translateString(\'Discounts\')"/>\n
- </h2>\n
-\n
- <p tal:condition="python: discount_info is not None"> \n
- <!-- Render discount information -->\n
- </p>\n
-\n
- <p tal:condition="python: discount_info is None">No discounts.</p>\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>SaleOrder_viewDiscountsRenderer</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Discounts custom renderer</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShippingRenderer.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShippingRenderer.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShippingRenderer.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShippingRenderer.xml (removed)
@@ -1,99 +1,0 @@
-<?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[
-
-<tal:block tal:define="shipping here/SaleOrder_getSelectedShippingResource;">\n
- <h2>\n
- <span tal:replace="python: here.Base_translateString(\'Shipping\')"/>\n
- </h2>\n
-\n
- <tal:block tal:condition="python: shipping is None">\n
- <h3> <span tal:replace="python: here.Base_translateString(\'You have not selected shipping\')"/></h3>\n
- <p> \n
- <span tal:replace="python: here.Base_translateString(\'Your current cart selection requires shipping. Please select shipping from\')"/>\n
- <a href="SaleOrder_viewAsWeb">here</a>.\n
- </p>\n
- </tal:block>\n
-\n
- <tal:block tal:condition="python: shipping is not None"\n
- tal:define="shipping_obj python: here.restrictedTraverse(shipping);">\n
- <p>\n
- <span tal:replace="shipping_obj/getTitle"/> : \n
- <b>\n
- <span tal:replace="shipping_obj/getPrice"/>\n
- <span tal:replace="python: here.SaleOrder_getShoppingCartDefaultCurrency().getTitle()"/>\n
- </b>\n
- </p>\n
- </tal:block>\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>SaleOrder_viewShippingRenderer</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Shipping method custom renderer</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShoppingCartRenderer.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShoppingCartRenderer.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShoppingCartRenderer.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShoppingCartRenderer.xml (removed)
@@ -1,144 +1,0 @@
-<?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[
-
-<tal:block tal:define="shopping_cart_items here/SaleOrder_getShoppingCartItemList;\n
- total_price python: here.SaleOrder_getShoppingCartTotalPrice(include_currency=True);\n
- empty_cart python: here.SaleOrder_isShoppingCartEmpty();\n
- confirm_mode python: bool(options.get(\'confirm_mode\', False))">\n
- <h2>\n
- <span tal:replace="python: here.Base_translateString(\'My shopping cart\')"/>\n
- </h2>\n
-\n
- <tal:block tal:condition = "empty_cart"> \n
- <h3><span tal:replace="python: here.Base_translateString(\'You shopping cart is empty.\')"/></h3>\n
- </tal:block>\n
-\n
- <tal:block tal:condition = "not: empty_cart">\n
- <div class="ListContent">\n
- <table cellpadding="0" cellspacing="0" width="65%">\n
- <tr>\n
- <td class="Data" tal:content="python: here.Base_translateString(\'Product\')"/>\n
- <td class="Data" tal:content="python: here.Base_translateString(\'Quantity\')"/>\n
- <td class="Data" tal:content="python: here.Base_translateString(\'Price\')"/>\n
- <td class="Data" tal:content="python: here.Base_translateString(\'Total\')"/>\n
- </tr>\n
- <tal:block tal:repeat="order_line shopping_cart_items">\n
- <tr tal:define="resource python: here.restrictedTraverse(order_line.getResource());\n
- quantity python: int(order_line.getQuantity());\n
- price python: resource.getPrice();\n
- order_line_id python: order_line.getId();\n
- currency python: here.restrictedTraverse(resource.getSupplyLinePriceCurrency()).getTitle()"> \n
- <td>\n
- <p> \n
- <a href="" tal:attributes="href resource/absolute_url">\n
- <span tal:replace="resource/getTitle"/> \n
- </a>\n
- <a tal:condition="not: confirm_mode"\n
- tal:attributes="href python: \'%s/SaleOrder_deleteShoppingCartItem?field_my_order_line_id=%s\' \n
- %(here.absolute_url(), order_line_id)">\n
- <img src="images/edittrash.png" title="Remove from shopping cart"/></a>\n
- <p>\n
- </td>\n
- <td>\n
- <select tal:condition="not: confirm_mode"\n
- name="field_my_buy_quantity">\n
- <tal:block tal:repeat="index python: range(1,31)">\n
- <option tal:condition="python: index!=quantity" tal:content="index" tal:attributes="value index"/>\n
- <option SELECTED tal:condition="python: index==quantity" tal:content="index" tal:attributes="value index"/>\n
- </tal:block>\n
- </select>\n
- <span tal:condition="confirm_mode" tal:content="quantity"/>\n
- </td>\n
- <td>\n
- <span tal:replace="price"/> <span tal:replace="currency"/>\n
- </td>\n
- <td>\n
- <span tal:replace="python: price*quantity"/> <span tal:replace="currency"/>\n
- </td>\n
- </tr>\n
- </tal:block>\n
- <tr>\n
- <td><br/><span tal:replace="python: here.Base_translateString(\'Sub Total\')"/></td>\n
- <td></td>\n
- <td></td>\n
- <td><br/>\n
- <b>\n
- <span tal:replace="total_price"/>\n
- </b>\n
- </td>\n
- </tr>\n
- </table>\n
- </div>\n
- </tal:block> \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>SaleOrder_viewShoppingCartRenderer</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Edit/Review shopping cart content custom renderer</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShoppingCartWidgetRenderer.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShoppingCartWidgetRenderer.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShoppingCartWidgetRenderer.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewShoppingCartWidgetRenderer.xml (removed)
@@ -1,131 +1,0 @@
-<?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[
-
-<p class="headlinkred">\n
- <span tal:replace="python: here.Base_translateString(\'SHOPPING CART\')"/>\n
-</p>\n
-\n
-<table>\n
- <tal:block tal:define="shopping_cart_items here/SaleOrder_getShoppingCartItemList;\n
- empty_cart python: here.SaleOrder_isShoppingCartEmpty();\n
- total_price python: here.SaleOrder_getShoppingCartTotalPrice(include_currency=True);\n
- website python: here.getWebSiteValue();">\n
-\n
- <tr tal:repeat="order_line shopping_cart_items">\n
- <td tal:define="resource python: website.restrictedTraverse(order_line.getResource());\n
- quantity python: int(order_line.getQuantity());\n
- price python: resource.getPrice();\n
- currency python: here.restrictedTraverse(resource.getSupplyLinePriceCurrency()).getTitle()"> \n
-\n
- <a class="articlelink" href="" tal:attributes="href resource/absolute_url">\n
- • <b tal:content="resource/getTitle"/>\n
- </a>\n
- <p class="article">\n
- <span tal:replace="python: here.Base_translateString(\'Price\')"/> : <span tal:replace="price"/> <span tal:replace="currency"/> \n
- <span tal:replace="python: here.Base_translateString(\'Quantity\')"/> : <span tal:replace="quantity"/>\n
- </p> \n
- </td>\n
- </tr> \n
-\n
- <tal:block tal:condition = "empty_cart">\n
- <tr><td>\n
- <p class="article"> \n
- <span tal:replace="python: here.Base_translateString(\'You shopping cart is empty.\')"/>\n
- </p>\n
- </td></tr>\t\t \n
- </tal:block>\n
-\n
- <tal:block tal:condition = "not: empty_cart">\n
- <tr><td>\n
- <p class="article">\n
- <b><span tal:replace="python: here.Base_translateString(\'Total price\')"/>: \n
- <span tal:replace="total_price"/>\n
- </b>\n
- </p> \n
- </td></tr>\n
- <tr>\n
- <td><a class="articlelink" \n
- tal:attributes="href python: \'%s/product_module/SaleOrder_viewAsWeb\' %website.absolute_url()">\n
- <span tal:replace="python: here.Base_translateString(\'Edit Shopping Cart\')"/>\n
- </a> \n
- <a class="articlelink"\n
- tal:attributes="href python: \'%s/product_module/SaleOrder_confirmShopping\' %website.absolute_url()">\n
- <span tal:replace="python: here.Base_translateString(\'Proceed to checkout\')"/>\n
- </a>\n
- </td>\n
- </tr>\n
- </tal:block>\n
- </tal:block>\n
-</table>\n
-\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>SaleOrder_viewShoppingCartWidgetRenderer</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Mini shopping cart widget custom renderer</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewTaxesRenderer.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewTaxesRenderer.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewTaxesRenderer.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_viewTaxesRenderer.xml (removed)
@@ -1,102 +1,0 @@
-<?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[
-
-<tal:block tal:define="shipping here/SaleOrder_getSelectedShippingResource;\n
- tax_info here/Person_getApplicableTaxList;\n
- total_price python: here.SaleOrder_getShoppingCartTotalPrice(include_shipping=True, \n
- include_taxes=True,\n
- include_currency=True);">\n
- <h2>\n
- <span tal:replace="python: here.Base_translateString(\'Taxes\')"/>\n
- </h2>\n
-\n
- <p tal:condition="python: tax_info is not None">\n
- <span tal:replace="python: here.Base_translateString(\'For your location the following taxes are applicable\')"/> :\n
- <b>\n
- <tal:block tal:repeat="tax_name python: tax_info.keys()">\n
- <li tal:content="python: \'%s (%s %s)\' %(tax_name, tax_info[tax_name], \'%\')">item </li>\n
- </tal:block>\n
- </b>\n
- </p>\n
-\n
- <p tal:condition="python: tax_info is None"> \n
- <span tal:replace="python: here.Base_translateString(\'You do not have to pay any taxes.\')"/> \n
- </p>\n
-\n
- <p tal:condition="python: tax_info is not None and shipping is not None"> \n
- <span tal:replace="python: here.Base_translateString(\'Total cost of order (including shipping and taxes)\')"/> :\n
- <b tal:content="total_price"/>\n
- </p>\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>SaleOrder_viewTaxesRenderer</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Taxes custom renderer</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_createUserAccount.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_createUserAccount.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_createUserAccount.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_createUserAccount.xml (removed)
@@ -1,224 +1,0 @@
-<?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>from Products.Formulator.Errors import FormValidationError\n
-\n
-request = context.REQUEST\n
-form_kw = request.form\n
-translateString = context.Base_translateString\n
-form = context.WebSite_joinForm\n
-\n
-## extract customer details\n
-person_kw = {}\n
-field_prefix = \'field_your_\'\n
-person_kw[\'career_role\'] = \'internal\'\n
-for key in form_kw.keys():\n
- if key.startswith(field_prefix):\n
- person_kw[key.replace(field_prefix, \'\')] = form_kw[key]\n
-\n
-## validate form to request\n
-try:\n
- kw = form.validate_all_to_request(request)\n
- validated = True\n
-except FormValidationError, validation_errors:\n
- validated = False\n
-\n
-if validated == False:\n
- context.REQUEST.set(\'field_errors\', form.ErrorFields(validation_errors))\n
- return form(validation_errors)\n
-\n
-## save customer\n
-person_module = context.getPortalObject().person_module\n
-person = person_module.newContent(portal_type=\'Person\', **person_kw)\n
-person.validate()\n
-\n
-## add assignment\n
-assignment = person.newContent(portal_type="Assignment", title="Commerce customer")\n
-assignment.setFunction(\'customer\')\n
-assignment.open()\n
-\n
-## reindex customer so it becomes available as site member\n
-person.immediateReindexObject()\n
-\n
-## set local role to Owner for new user \n
-## so he can view/modify ONLY this object\n
-person.manage_addLocalRoles(person_kw[\'reference\'], (\'Owner\',)) \n
-\n
-context.Base_redirect(\'WebSite_login\', \\\n
- keep_items={\'portal_status_message\': translateString("Your account was created.", mapping = dict()),\n
- \'came_from\': context.absolute_url(),\n
- \'__ac_name\': person_kw[\'reference\'],\n
- \'__ac_password\': person_kw[\'password\']})\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>_proxy_roles</string> </key>
- <value>
- <tuple>
- <string>Manager</string>
- </tuple>
- </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>Products.Formulator.Errors</string>
- <string>FormValidationError</string>
- <string>_getattr_</string>
- <string>context</string>
- <string>request</string>
- <string>form_kw</string>
- <string>translateString</string>
- <string>form</string>
- <string>person_kw</string>
- <string>field_prefix</string>
- <string>_write_</string>
- <string>_getiter_</string>
- <string>key</string>
- <string>_getitem_</string>
- <string>kw</string>
- <string>True</string>
- <string>validated</string>
- <string>validation_errors</string>
- <string>False</string>
- <string>person_module</string>
- <string>_apply_</string>
- <string>person</string>
- <string>assignment</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>WebSite_createUserAccount</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Create user account for website</string> </value>
- </item>
- <item>
- <key> <string>warnings</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_login.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_login.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_login.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_login.xml (removed)
@@ -1,97 +1,0 @@
-<?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>_owner</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_text</string> </key>
- <value> <string encoding="cdata"><![CDATA[
-
-<tal:block tal:condition="here/portal_skins/updateSkinCookie | nothing"\n
- tal:define="dummy here/setupCurrentSkin;" />\n
-<tal:block tal:define="response request/RESPONSE;\n
- mtool here/portal_membership;\n
- isAnon mtool/isAnonymousUser|nothing;">\n
- <tal:block tal:condition="isAnon">\n
- <tal:block tal:define="dummy python: response.expireCookie(\'__ac\', path=\'/\');\n
- url python: \'%s?portal_status_message=%s\' % (request.get(\'came_from\'), here.Base_translateString(\'Login+and/or+password+is+incorrect.\'));\n
- dummy python: response.redirect(url);"/>\n
-\n
- </tal:block>\n
- <tal:block tal:condition="not: isAnon">\n
- <tal:block tal:define="came_from python: request.get(\'came_from\') or here.portal_url() + \'/view\';\n
- dummy python: response.redirect(\'%s?portal_status_message=%s\' \n
- %(came_from, here.Base_translateString(\'Login+successful.\')));" />\n
- </tal:block>\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>WebSite_login</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Login handler</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_logout.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_logout.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_logout.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_logout.xml (removed)
@@ -1,284 +1,0 @@
-<?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>_Access_contents_information_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>_Change_bindings_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>_Change_cache_settings_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>_Change_permissions_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>_Copy_or_Move_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>_Delete_objects_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>_Manage_WebDAV_Locks_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>_Manage_properties_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>_Take_ownership_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>_Undo_changes_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>_View_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>_View_management_screens_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>_WebDAV_Lock_items_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>_WebDAV_Unlock_items_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>_WebDAV_access_Permission</string> </key>
- <value>
- <list>
- <string>Manager</string>
- </list>
- </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
-if REQUEST.has_key(\'portal_skin\'):\n
- context.portal_skins.clearSkinCookie()\n
-\n
-REQUEST.RESPONSE.expireCookie(\'__ac\', path=\'/\')\n
-\n
-translateString = context.Base_translateString\n
-context.Base_redirect(\'view\', \\\n
- keep_items={\'portal_status_message\': translateString("You have been logged out.", mapping = dict())})\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>_proxy_roles</string> </key>
- <value>
- <tuple/>
- </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>translateString</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>WebSite_logout</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Logout handler</string> </value>
- </item>
- <item>
- <key> <string>warnings</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_validateUserID.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_validateUserID.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_validateUserID.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_validateUserID.xml (removed)
@@ -1,168 +1,0 @@
-<?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>user_list = context.acl_users.searchUsers(id=editor, exact_match=True)\n
-return len(user_list)==0\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>_owner</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_params</string> </key>
- <value> <string>editor, request</string> </value>
- </item>
- <item>
- <key> <string>_proxy_roles</string> </key>
- <value>
- <tuple>
- <string>Assignor</string>
- <string>Manager</string>
- </tuple>
- </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>2</int> </value>
- </item>
- <item>
- <key> <string>co_varnames</string> </key>
- <value>
- <tuple>
- <string>editor</string>
- <string>request</string>
- <string>_getattr_</string>
- <string>context</string>
- <string>True</string>
- <string>user_list</string>
- <string>len</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>WebSite_validateUserID</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Is valid user ID provided?</string> </value>
- </item>
- <item>
- <key> <string>warnings</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_viewStandardLoginWidgetRenderer.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_viewStandardLoginWidgetRenderer.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_viewStandardLoginWidgetRenderer.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_viewStandardLoginWidgetRenderer.xml (removed)
@@ -1,128 +1,0 @@
-<?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[
-
-<p class="headlinkred">LOGIN STATUS</p>\n
-\n
-<tal:block tal:define="isAnon here/portal_membership/isAnonymousUser">\n
- <tal:block tal:condition="isAnon">\n
- <p class="article">\n
- <span tal:replace="python: here.Base_translateString(\'You are not logged in\')"/>\n
- </p>\n
- <p class="article">\n
- <a class="articlelink" href="product_module/WebSite_joinForm">\n
- • <span tal:replace="python: here.Base_translateString(\'I want to create an account\')"/>\n
- </a>\n
- </p>\n
-\n
- <table>\n
- <tr>\n
- <td class="article"><span tal:replace="python: here.Base_translateString(\'Username\')"/>:</td>\n
- <td><input name="__ac_name" size="10" tal:attributes="value python: request.get(\'__ac_name\') or \'\'"/></td>\n
- </tr>\n
- <tr>\n
- <td class="article"><span tal:replace="python: here.Base_translateString(\'Password\')"/>:</td>\n
- <td><input type="password" name="__ac_password" size="10" class="input"/></td>\n
- </tr>\n
- <tr>\n
- <td><input type="hidden" name="came_from" tal:attributes="value here/absolute_url"/>\n
- <input type="hidden" name="__ac_persistent" value="1"/>\n
- <input type="submit" value="Login" name="WebSite_login:method"/>\n
- </td>\n
- </tr>\n
- </table>\n
- </tal:block>\n
-\n
- <tal:block tal:condition="not: isAnon"\n
- tal:define="customer here/SaleOrder_getShoppingCartCustomer;\n
- website here/getWebSiteValue">\n
-\n
- <p class="article">\n
- <b><span tal:replace="python: here.Base_translateString(\'Hello\')"/>, <span tal:replace="customer/getTitle"/></b>\n
- </p>\n
- <a class="articlelink" \n
- tal:attributes="href python: \'%s/SaleOrderModule_viewAsWebSaleOrderList\' %website.sale_order_module.absolute_url()">\n
- <span tal:replace="python: here.Base_translateString(\'My Orders\')"/>\n
- </a> \n
- <a class="articlelink" \n
- tal:attributes="href python: \'%s/%s/view?editable_mode:int=1\' %(website.absolute_url(), customer.getRelativeUrl())"> \n
- <span tal:replace="python: here.Base_translateString(\'My Account\')"/>\n
- </a> \n
- <a class="articlelink" \n
- tal:attributes="href python: \'%s/WebSite_logout\' %website.absolute_url()">\n
- <span tal:replace="python: here.Base_translateString(\'Logout\')"/>\n
- </a>\n
- <br/>\n
- </tal:block>\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>WebSite_viewStandardLoginWidgetRenderer</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Login/Logout widget</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_field_render.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_field_render.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_field_render.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_field_render.xml (removed)
@@ -1,137 +1,0 @@
-<?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>_owner</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_text</string> </key>
- <value> <string encoding="cdata"><![CDATA[
-
-<tal:block tal:replace="nothing"\n
- xmlns:tal="http://xml.zope.org/namespaces/tal"\n
- xmlns:metal="http://xml.zope.org/namespaces/metal"\n
- xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
-<!--\n
-Copyright (c) 2006 Nexedi SARL and Contributors. All Rights Reserved.\n
- Vincent Pelletier <vincent at nexedi.com>\n
- Christophe Dumez <christophe at nexedi.com>\n
-\n
-This program is Free Software; you can redistribute it and/or\n
-modify it under the terms of the GNU General Public License\n
-as published by the Free Software Foundation; either version 2\n
-of the License, or (at your option) any later version.\n
-\n
-This program is distributed in the hope that it will be useful,\n
-but WITHOUT ANY WARRANTY; without even the implied warranty of\n
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n
-GNU General Public License for more details.\n
-\n
-You should have received a copy of the GNU General Public License\n
-along with this program; if not, write to the Free Software\n
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
---></tal:block>\n
-\n
-<tal:block metal:define-macro="field_render">\n
- <tal:block tal:condition="python: field.meta_type != \'HiddenStringField\'"\n
- tal:define="field_id field/id;\n
- dummy python: request.set(\'editable_mode\',1);\n
- value python: request.get(field_id, None);\n
- field_errors python: request.get(\'field_errors\', {});\n
- field_has_error python: field_errors.has_key(field_id);\n
- global form_id form_id | python: form.id;\n
- field_description python: here.Base_getFieldDescription(form_id=form_id, field=field)">\n
- <div tal:define="html_render python: field.render_htmlgrid(value, request)"\n
- tal:attributes="title field_description;\n
- class python: \' \'.join([x for x in [\'field\', field.is_required() and \'required\' or None, field_has_error and \'error\' or None, field.get_value(\'css_class\') or None] if x is not None])"\n
- i18n:attributes="title" i18n:domain="ui">\n
- <tal:block tal:repeat="html_tuple html_render">\n
- <label>\n
- <tal:block tal:content="structure python: html_tuple[0]"\n
- i18n:translate="" i18n:domain="ui"/>\n
- <tal:block tal:condition="preferred_html_style_developper_mode">\n
- <tal:block metal:use-macro="developper_shortcut_render/macros/field_developper"/>\n
- </tal:block>\n
- <tal:block tal:condition="preferred_html_style_translator_mode">\n
- <tal:block metal:use-macro="developper_shortcut_render/macros/field_translator"/>\n
- </tal:block>\n
- </label>\n
- <div class="input" tal:content="structure python: html_tuple[1]"/>\n
- <span tal:condition="python: field_has_error"\n
- class="error"\n
- tal:content="python: field_errors[field_id].error_text"\n
- i18n:translate="" i18n:domain="ui"/>\n
- <p class="clear" tal:condition="not:is_web_mode"></p>\n
- </tal:block>\n
- </div>\n
- </tal:block>\n
-</tal:block>
-
-]]></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>web_field_render</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string></string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_form_render.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_form_render.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_form_render.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_form_render.xml (removed)
@@ -1,153 +1,0 @@
-<?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>_owner</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_text</string> </key>
- <value> <string encoding="cdata"><![CDATA[
-
-<tal:block tal:replace="nothing"\n
- xmlns:tal="http://xml.zope.org/namespaces/tal"\n
- xmlns:metal="http://xml.zope.org/namespaces/metal"\n
- xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
-<!--\n
-Copyright (c) 2006 Nexedi SARL and Contributors. All Rights Reserved.\n
- Vincent Pelletier <vincent at nexedi.com>\n
- Christophe Dumez <christophe at nexedi.com>\n
-\n
-This program is Free Software; you can redistribute it and/or\n
-modify it under the terms of the GNU General Public License\n
-as published by the Free Software Foundation; either version 2\n
-of the License, or (at your option) any later version.\n
-\n
-This program is distributed in the hope that it will be useful,\n
-but WITHOUT ANY WARRANTY; without even the implied warranty of\n
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n
-GNU General Public License for more details.\n
-\n
-You should have received a copy of the GNU General Public License\n
-along with this program; if not, write to the Free Software\n
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
-\n
-XXX: each case must be handled separatelly in this precise representation :\n
- - both top fields must be in the same div, so they must be identified\n
- strictly by their name.\n
- - the middle field is rendered like the two top ones, but outside of the\n
- top block.\n
- - the bottom block is rendered in another way (without its group name) so it\n
- must be rendered separatelly.\n
-This leads to minor code duplication, but it\'s still code duplication.\n
-\n
-Breaks strict compatibility:\n
- * Groups must be named one of "left", "right", "center", "bottom" otherwise they will not\n
- be rendered.\n
- * Group order doesn\'t matter. Case is sensitive.\n
- * Groups names becomes "left_group", "right_group", "left1_group", "right1_group",\n
- "bottom_group" for quad_form_view macro.\n
-\n
-It is possible to specify a group id and a group title by naming a group following the\n
- "group id (Group Title)" pattern. In this case the group id will be used as fieldset css\n
- class and as tag id. The group title will be used as a legend for the fieldset. If no group\n
- title is found, we use group id as title.\n
--->\n
-</tal:block>\n
-\n
-\n
-<tal:block metal:define-macro="master">\n
- <tal:block\n
- tal:define="field_errors python: request.get(\'field_errors\', {});\n
- dummy python: request.set(\'here\', here);\n
- group_list python: form.Form_getGroupTitleAndId();\n
- gid_list python: \' \'.join([x[\'gid\'] for x in group_list if x!=\'hidden\']);\n
- field_render nocall: here/web_field_render/macros/field_render">\n
-\n
- <tal:block tal:condition="preferred_html_style_developper_mode">\n
- <tal:block metal:use-macro="developper_shortcut_render/macros/form"/>\n
- </tal:block>\n
-\n
- <tal:block tal:repeat="group group_list">\n
- <tal:block tal:define="gid group/gid;">\n
- <fieldset tal:condition="python: gid.find(\'hidden\') < 0"\n
- tal:attributes="class gid;\n
- id python: \'fieldset_%s\' % (gid.replace(\' \', \'_\'), );">\n
- <legend tal:condition="group/gtitle" tal:content="group/gtitle" class="group_title"/>\n
- <tal:block tal:repeat="field python: form.get_fields_in_group(group[\'goid\'])">\n
- <tal:block metal:use-macro="field_render"/>\n
- </tal:block>\n
- </fieldset>\n
- </tal:block>\n
- </tal:block>\n
- <p class="clear"></p>\n
- </tal:block>\n
-</tal:block>
-
-]]></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>web_form_render</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string></string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_form_view.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_form_view.xml?rev=15062&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_form_view.xml (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/web_form_view.xml (removed)
@@ -1,104 +1,0 @@
-<?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[
-
-<tal:block tal:replace="nothing"\n
- xmlns:tal="http://xml.zope.org/namespaces/tal"\n
- xmlns:metal="http://xml.zope.org/namespaces/metal"\n
- xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
-<!--\n
-Copyright (c) 2006 Nexedi SARL and Contributors. All Rights Reserved.\n
- Vincent Pelletier <vincent at nexedi.com>\n
- Christophe Dumez <christophe at nexedi.com>\n
-\n
-This program is Free Software; you can redistribute it and/or\n
-modify it under the terms of the GNU General Public License\n
-as published by the Free Software Foundation; either version 2\n
-of the License, or (at your option) any later version.\n
-\n
-This program is distributed in the hope that it will be useful,\n
-but WITHOUT ANY WARRANTY; without even the implied warranty of\n
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n
-GNU General Public License for more details.\n
-\n
-You should have received a copy of the GNU General Public License\n
-along with this program; if not, write to the Free Software\n
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
--->\n
-</tal:block>\n
-<tal:block metal:define-macro="master">\n
- <tal:block metal:use-macro="here/view_main/macros/master">\n
- <tal:block metal:fill-slot="main">\n
- <tal:block metal:use-macro="here/web_form_render/macros/master" />\n
- </tal:block>\n
- </tal:block>\n
-</tal:block>
-
-]]></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>web_form_view</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string></string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
More information about the Erp5-report
mailing list