[Erp5-report] r42376 romain - in /erp5/trunk/bt5/vifib_web: SkinTemplateItem/portal_skins/v...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jan 17 14:12:45 CET 2011


Author: romain
Date: Mon Jan 17 14:12:44 2011
New Revision: 42376

URL: http://svn.erp5.org?rev=42376&view=rev
Log:
Remove erp5_commerce dependency.

Use vifib API to create required documents. The website should reuse backend methodsto prevent duplicating the implementation.

Added:
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getVifibSession.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_setCustomerInformation.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog/listbox_getDefaultImageAbsoluteUrl.xml
Removed:
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Computer_getFreeComputerPartition.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SaleOrder_setCustomerInformation.xml
Modified:
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_addSelectedSoftwareProductToShoppingCart.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_addSelectedSoftwareReleaseToShoppingCart.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getPersonOpenSaleOrderLine.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getSelectableSoftwareReleaseList.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_career_subordination_title.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_city.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_street_address.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_zip_code.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_email_text.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_telephone_text.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_first_name.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_last_name.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog.xml
    erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog/listbox.xml
    erp5/trunk/bt5/vifib_web/bt/dependency_list
    erp5/trunk/bt5/vifib_web/bt/revision

Removed: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Computer_getFreeComputerPartition.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Computer_getFreeComputerPartition.xml?rev=42375&view=auto
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Computer_getFreeComputerPartition.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Computer_getFreeComputerPartition.xml (removed)
@@ -1,120 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>Script_magic</string> </key>
-            <value> <int>3</int> </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>return len(context.searchFolder(portal_type="Computer Partition",slap_state="busy"))\n
-</string> </value>
-        </item>
-        <item>
-            <key> <string>_code</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_params</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>errors</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>func_code</string> </key>
-            <value>
-              <object>
-                <klass>
-                  <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
-                </klass>
-                <tuple/>
-                <state>
-                  <dictionary>
-                    <item>
-                        <key> <string>co_argcount</string> </key>
-                        <value> <int>0</int> </value>
-                    </item>
-                    <item>
-                        <key> <string>co_varnames</string> </key>
-                        <value>
-                          <tuple>
-                            <string>len</string>
-                            <string>_getattr_</string>
-                            <string>context</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>Computer_getFreeComputerPartition</string> </value>
-        </item>
-        <item>
-            <key> <string>warnings</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>

Removed: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SaleOrder_setCustomerInformation.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SaleOrder_setCustomerInformation.xml?rev=42375&view=auto
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SaleOrder_setCustomerInformation.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SaleOrder_setCustomerInformation.xml (removed)
@@ -1,141 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>Script_magic</string> </key>
-            <value> <int>3</int> </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>"""Update customer informations"""\n
-\n
-context.SaleOrder_getShoppingCartCustomer().edit(\n
-              last_name=last_name,\n
-              first_name=first_name,\n
-              career_subordination_title=career_subordination_title,\n
-              default_email_text=default_email_text,\n
-              default_telephone_text=default_telephone_text,\n
-              default_address_street_address=default_address_street_address,\n
-              default_address_zip_code=default_address_zip_code,\n
-              default_address_city=default_address_city,\n
-              )\n
-\n
-context.WebSection_viewNextStep()\n
-</string> </value>
-        </item>
-        <item>
-            <key> <string>_code</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_params</string> </key>
-            <value> <string>career_subordination_title,default_address_street_address,default_address_zip_code,default_address_city,default_telephone_text,first_name,last_name,default_email_text,**kw</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>8</int> </value>
-                    </item>
-                    <item>
-                        <key> <string>co_varnames</string> </key>
-                        <value>
-                          <tuple>
-                            <string>career_subordination_title</string>
-                            <string>default_address_street_address</string>
-                            <string>default_address_zip_code</string>
-                            <string>default_address_city</string>
-                            <string>default_telephone_text</string>
-                            <string>first_name</string>
-                            <string>last_name</string>
-                            <string>default_email_text</string>
-                            <string>kw</string>
-                            <string>_getattr_</string>
-                            <string>context</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>SaleOrder_setCustomerInformation</string> </value>
-        </item>
-        <item>
-            <key> <string>warnings</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_addSelectedSoftwareProductToShoppingCart.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_addSelectedSoftwareProductToShoppingCart.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_addSelectedSoftwareProductToShoppingCart.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_addSelectedSoftwareProductToShoppingCart.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -50,70 +50,22 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string encoding="cdata"><![CDATA[
-
-"""Add selected product to the cart and continue"""\n
+            <value> <string>"""Add selected product to the cart and continue"""\n
 portal = context.getPortalObject()\n
-prefered_resource = portal.portal_preferences.getPreferredInstanceSetupResource()\n
 \n
-##Get item list\n
-item_list = []\n
-if uids:\n
-  item_list = [item.getObject() for item in portal.portal_catalog(uid=uids, portal_type="Software Product")]\n
-\n
-if len(item_list) != 1:\n
+if len(uids) != 1:\n
   return context.Base_redirect(dialog_id,\n
                         keep_items={\'portal_status_message\':context.Base_translateString("Please select one service.")})\n
-\n
-\n
-##Reset the cart and get new shopping cart\n
-if reset_shopping_cart:\n
-  context.SaleOrder_getShoppingCart(action=\'reset\')\n
-\n
-shopping_cart = context.SaleOrder_getShoppingCart()\n
-shopping_cart_items = context.SaleOrder_getShoppingCartItemList()\n
-\n
-item = item_list[0]\n
-\n
-product_url = item.getRelativeUrl()\n
-## check if we don\'t have already such a resource in cart\n
-line_found=False\n
-if not reset_shopping_cart:\n
-  for order_line in shopping_cart_items:\n
-    if product_url in order_line.getAggregateList():\n
-      new_quantity = int(order_line.getQuantity()) + quantity\n
-      if new_quantity <= 0:\n
-        ## remove items with zero quantity\n
-        shopping_cart.manage_delObjects(order_line)\n
-      else:\n
-        order_line.setQuantity(new_quantity)\n
-      line_found=True\n
-      break\n
-\n
-if not line_found:\n
-  ## new Resource so add it to shopping cart\n
-  order_line = shopping_cart.newContent(portal_type=\'Sale Order Line\',\n
-                                        quantity=quantity,\n
-                                        resource=prefered_resource,\n
-                                        price=50,\n
-                                        aggregate_list=[product_url])\n
-    \n
-##Set connected member as shopping cart customer\n
-context.SaleOrder_setShoppingCartCustomer()\n
-\n
-##check order is ok\n
-# if not shopping_cart.SaleOrder_isConsistent():\n
-#   return context.Base_redirect(dialog_id,\n
-#                       keep_items={\'portal_status_message\':context.Base_translateString("Please select a shipping service")})\n
+else:\n
+  session = context.WebSection_getVifibSession()\n
+  session[\'instance_software_product_uid\'] = uids[0]\n
 \n
 if kw.has_key(\'came_from\'):\n
   #we override the context to redirect the user to the next web section\n
   context = portal.restrictedTraverse(kw[\'came_from\'])\n
   \n
 context.WebSection_viewNextStep()\n
-
-
-]]></string> </value>
+</string> </value>
         </item>
         <item>
             <key> <string>_code</string> </key>
@@ -157,22 +109,10 @@ context.WebSection_viewNextStep()\n
                             <string>_getattr_</string>
                             <string>context</string>
                             <string>portal</string>
-                            <string>prefered_resource</string>
-                            <string>item_list</string>
-                            <string>$list0</string>
-                            <string>_getiter_</string>
-                            <string>item</string>
                             <string>len</string>
-                            <string>shopping_cart</string>
-                            <string>shopping_cart_items</string>
+                            <string>session</string>
                             <string>_getitem_</string>
-                            <string>product_url</string>
-                            <string>False</string>
-                            <string>line_found</string>
-                            <string>order_line</string>
-                            <string>int</string>
-                            <string>new_quantity</string>
-                            <string>True</string>
+                            <string>_write_</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_addSelectedSoftwareReleaseToShoppingCart.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_addSelectedSoftwareReleaseToShoppingCart.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_addSelectedSoftwareReleaseToShoppingCart.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_addSelectedSoftwareReleaseToShoppingCart.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -50,42 +50,15 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>"""Add selected product to the cart and continue"""\n
+            <value> <string>"""Add selected release to the cart and continue"""\n
 portal = context.getPortalObject()\n
-prefered_resource = portal.portal_preferences.getPreferredInstanceSetupResource()\n
-service = portal.restrictedTraverse(prefered_resource)\n
 \n
-##Get item list\n
-item_list = []\n
-if uids:\n
-  item_list = [item.getObject() for item in portal.portal_catalog(uid=uids, portal_type="Software Release")]\n
-\n
-if len(item_list) != 1:\n
+if len(uids) != 1:\n
   return context.Base_redirect(dialog_id,\n
                         keep_items={\'portal_status_message\':context.Base_translateString("Please select one software release.")})\n
-\n
-shopping_cart = context.SaleOrder_getShoppingCart()\n
-shopping_cart_items = context.SaleOrder_getShoppingCartItemList()\n
-\n
-# Assert that there is only one shopping cart items\n
-if len(shopping_cart_items) != 1:\n
-  raise NotImplementedError, "There should be only one shopping cart item."\n
-\n
-item = item_list[0]\n
-product_url = item.getAggregate()\n
-## check if we don\'t have already such a resource in cart\n
-line_found=False\n
-for order_line in shopping_cart_items:\n
-  if product_url in order_line.getAggregateList():\n
-    line_found=True\n
-    order_line.edit(aggregate_value_list=order_line.getAggregateList() + [item.getRelativeUrl()])\n
-    break\n
-\n
-if not line_found:\n
-  raise NotImplementedError, "No shopping cart item related to the release found."\n
-    \n
-##Set connected member as shopping cart customer\n
-context.SaleOrder_setShoppingCartCustomer()\n
+else:\n
+  session = context.WebSection_getVifibSession()\n
+  session[\'instance_software_release_uid\'] = uids[0]\n
 \n
 if kw.has_key(\'came_from\'):\n
   #we override the context to redirect the user to the next web section\n
@@ -135,22 +108,10 @@ context.WebSection_viewNextStep()\n
                             <string>_getattr_</string>
                             <string>context</string>
                             <string>portal</string>
-                            <string>prefered_resource</string>
-                            <string>service</string>
-                            <string>item_list</string>
-                            <string>$list0</string>
-                            <string>_getiter_</string>
-                            <string>item</string>
                             <string>len</string>
-                            <string>shopping_cart</string>
-                            <string>shopping_cart_items</string>
-                            <string>NotImplementedError</string>
+                            <string>session</string>
                             <string>_getitem_</string>
-                            <string>product_url</string>
-                            <string>False</string>
-                            <string>line_found</string>
-                            <string>order_line</string>
-                            <string>True</string>
+                            <string>_write_</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getPersonOpenSaleOrderLine.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getPersonOpenSaleOrderLine.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getPersonOpenSaleOrderLine.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getPersonOpenSaleOrderLine.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -53,13 +53,17 @@
             <value> <string>portal = context.getPortalObject()\n
 person_uid = portal.ERP5Site_getPropertyFromAuthenticatedMemberPersonValue(\'uid\')\n
 \n
-default_open_order = portal.portal_catalog.getResultValue(portal_type="Open Sale Order",\n
-                     default_destination_section_uid=person_uid)\n
+open_order_uid_list = [x.uid for x in portal.portal_catalog(\n
+                                 portal_type="Open Sale Order",\n
+                                 simulation_state="started",\n
+                                 default_destination_section_uid=person_uid)\n
+]\n
 \n
-if not default_open_order:\n
-  return []\n
-\n
-return default_open_order.contentValues(**kw)\n
+return portal.portal_catalog(\n
+  portal_type="Open Sale Order Line",\n
+  parent_uid=open_order_uid_list,\n
+  **kw\n
+)\n
 </string> </value>
         </item>
         <item>
@@ -101,7 +105,10 @@ return default_open_order.contentValues(
                             <string>context</string>
                             <string>portal</string>
                             <string>person_uid</string>
-                            <string>default_open_order</string>
+                            <string>$list0</string>
+                            <string>_getiter_</string>
+                            <string>x</string>
+                            <string>open_order_uid_list</string>
                             <string>_apply_</string>
                           </tuple>
                         </value>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getSelectableSoftwareReleaseList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getSelectableSoftwareReleaseList.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getSelectableSoftwareReleaseList.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getSelectableSoftwareReleaseList.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -51,27 +51,18 @@
         <item>
             <key> <string>_body</string> </key>
             <value> <string>"""Get the release of the selected product"""\n
-portal = context.getPortalObject()\n
-prefered_resource = portal.portal_preferences.getPreferredInstanceSetupResource()\n
-service = portal.restrictedTraverse(prefered_resource)\n
-\n
-shopping_cart_items = context.SaleOrder_getShoppingCartItemList()\n
+session = context.WebSection_getVifibSession()\n
+uid = session.get(\'instance_software_product_uid\', None)\n
 \n
 # assert there is only one item\n
-if len(shopping_cart_items) != 1:\n
-  raise NotImplementedError, "There should be only one shopping card item"\n
-\n
-order_line = shopping_cart_items[0]\n
-software_product = order_line.getAggregateValue(portal_type="Software Product")\n
-\n
-if software_product is None:\n
-  raise NotImplementedError, "There should one selected software product"\n
-\n
-return context.portal_catalog(\n
-  portal_type="Software Release",\n
-  default_aggregate_uid=software_product.getUid(),\n
-  validation_state=["shared", "shared_alive", "released", "released_alive", "published", "published_alive"]\n
-  )\n
+if uid is None:\n
+  raise AttributeError, "There should be only one selected software product"\n
+else:\n
+  return context.portal_catalog(\n
+    portal_type="Software Release",\n
+    default_aggregate_uid=uid,\n
+    validation_state=["shared", "shared_alive", "released", "released_alive", "published", "published_alive"]\n
+    )\n
 </string> </value>
         </item>
         <item>
@@ -82,7 +73,7 @@ return context.portal_catalog(\n
         </item>
         <item>
             <key> <string>_params</string> </key>
-            <value> <string>dialog_id=None, uids=[], quantity = 1, reset_shopping_cart=True, **kw</string> </value>
+            <value> <string>**kw</string> </value>
         </item>
         <item>
             <key> <string>errors</string> </key>
@@ -102,29 +93,19 @@ return context.portal_catalog(\n
                   <dictionary>
                     <item>
                         <key> <string>co_argcount</string> </key>
-                        <value> <int>4</int> </value>
+                        <value> <int>0</int> </value>
                     </item>
                     <item>
                         <key> <string>co_varnames</string> </key>
                         <value>
                           <tuple>
-                            <string>dialog_id</string>
-                            <string>uids</string>
-                            <string>quantity</string>
-                            <string>reset_shopping_cart</string>
                             <string>kw</string>
                             <string>_getattr_</string>
                             <string>context</string>
-                            <string>portal</string>
-                            <string>prefered_resource</string>
-                            <string>service</string>
-                            <string>shopping_cart_items</string>
-                            <string>len</string>
-                            <string>NotImplementedError</string>
-                            <string>_getitem_</string>
-                            <string>order_line</string>
-                            <string>software_product</string>
+                            <string>session</string>
                             <string>None</string>
+                            <string>uid</string>
+                            <string>AttributeError</string>
                           </tuple>
                         </value>
                     </item>
@@ -136,12 +117,7 @@ return context.portal_catalog(\n
         <item>
             <key> <string>func_defaults</string> </key>
             <value>
-              <tuple>
-                <none/>
-                <list/>
-                <int>1</int>
-                <int>1</int>
-              </tuple>
+              <none/>
             </value>
         </item>
         <item>

Added: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getVifibSession.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getVifibSession.xml?rev=42376&view=auto
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getVifibSession.xml (added)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getVifibSession.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -0,0 +1,152 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>Script_magic</string> </key>
+            <value> <int>3</int> </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>""" \n
+  Add resource to current (or to be created shopping cart). \n
+"""\n
+from DateTime import DateTime\n
+from random import choice\n
+import string\n
+\n
+request = context.REQUEST\n
+expire_timeout_days = 90\n
+session_id = request.get(\'vifib_session_id\', None)\n
+portal_sessions = context.portal_sessions\n
+\n
+if session_id is None:\n
+  ## first call so generate session_id and send back via cookie\n
+  now = DateTime()\n
+  session_id = \'\'.join([choice(string.letters) for i in range(20)])\n
+  request.RESPONSE.setCookie(\'vifib_session_id\', session_id, expires=(now +expire_timeout_days).fCommon(), path=\'/\')\n
+\n
+return portal_sessions[session_id]\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>errors</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_code</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>co_argcount</string> </key>
+                        <value> <int>0</int> </value>
+                    </item>
+                    <item>
+                        <key> <string>co_varnames</string> </key>
+                        <value>
+                          <tuple>
+                            <string>DateTime</string>
+                            <string>random</string>
+                            <string>choice</string>
+                            <string>string</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>request</string>
+                            <string>expire_timeout_days</string>
+                            <string>None</string>
+                            <string>session_id</string>
+                            <string>portal_sessions</string>
+                            <string>now</string>
+                            <string>$list0</string>
+                            <string>_getiter_</string>
+                            <string>range</string>
+                            <string>i</string>
+                            <string>_getitem_</string>
+                          </tuple>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_defaults</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>WebSection_getVifibSession</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_setCustomerInformation.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_setCustomerInformation.xml?rev=42376&view=auto
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_setCustomerInformation.xml (added)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_setCustomerInformation.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -0,0 +1,169 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>Script_magic</string> </key>
+            <value> <int>3</int> </value>
+        </item>
+        <item>
+            <key> <string>_bind_names</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>_asgns</string> </key>
+                        <value>
+                          <dictionary>
+                            <item>
+                                <key> <string>name_container</string> </key>
+                                <value> <string>container</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_context</string> </key>
+                                <value> <string>context</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_m_self</string> </key>
+                                <value> <string>script</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_subpath</string> </key>
+                                <value> <string>traverse_subpath</string> </value>
+                            </item>
+                          </dictionary>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>_body</string> </key>
+            <value> <string encoding="cdata"><![CDATA[
+
+"""Update customer informations"""\n
+portal = context.getPortalObject()\n
+\n
+person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n
+person.edit(\n
+  last_name=last_name,\n
+  first_name=first_name,\n
+  career_subordination_title=career_subordination_title,\n
+  default_email_text=default_email_text,\n
+  default_telephone_text=default_telephone_text,\n
+  default_address_street_address=default_address_street_address,\n
+  default_address_zip_code=default_address_zip_code,\n
+  default_address_city=default_address_city,\n
+  )\n
+\n
+# return context.WebSection_viewNextStep()\n
+session = context.WebSection_getVifibSession()\n
+instance_software_release_uid = session[\'instance_software_release_uid\']\n
+software_release = portal.portal_catalog.getResultValue(uid=instance_software_release_uid)\n
+\n
+person.requestSoftwareInstance(\n
+  software_release=software_release.getUrlString(),\n
+  partition_reference=software_release.getTitle(),\n
+  instance_xml="""<?xml version="1.0" encoding="utf-8"?>\n
+<instance>\n
+</instance>\n
+""",\n
+)\n
+\n
+message = context.Base_translateString("Your instance is under creation. Thank you for using ViFiB!")\n
+return context.getWebSiteValue().Base_redirect(keep_items={\'portal_status_message\': message})\n
+
+
+]]></string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string>career_subordination_title,default_address_street_address,default_address_zip_code,default_address_city,default_telephone_text,first_name,last_name,default_email_text,**kw</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>8</int> </value>
+                    </item>
+                    <item>
+                        <key> <string>co_varnames</string> </key>
+                        <value>
+                          <tuple>
+                            <string>career_subordination_title</string>
+                            <string>default_address_street_address</string>
+                            <string>default_address_zip_code</string>
+                            <string>default_address_city</string>
+                            <string>default_telephone_text</string>
+                            <string>first_name</string>
+                            <string>last_name</string>
+                            <string>default_email_text</string>
+                            <string>kw</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>portal</string>
+                            <string>person</string>
+                            <string>session</string>
+                            <string>_getitem_</string>
+                            <string>instance_software_release_uid</string>
+                            <string>software_release</string>
+                            <string>message</string>
+                          </tuple>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_defaults</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>WebSection_setCustomerInformation</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -35,7 +35,7 @@
         </item>
         <item>
             <key> <string>action</string> </key>
-            <value> <string>SaleOrder_setCustomerInformation</string> </value>
+            <value> <string>WebSection_setCustomerInformation</string> </value>
         </item>
         <item>
             <key> <string>description</string> </key>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_career_subordination_title.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_career_subordination_title.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_career_subordination_title.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_career_subordination_title.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -10,8 +10,8 @@
             <key> <string>delegated_list</string> </key>
             <value>
               <list>
-                <string>title</string>
                 <string>default</string>
+                <string>title</string>
               </list>
             </value>
         </item>
@@ -71,6 +71,10 @@
                     <key> <string>target</string> </key>
                     <value> <string></string> </value>
                 </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
               </dictionary>
             </value>
         </item>
@@ -79,6 +83,10 @@
             <value>
               <dictionary>
                 <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
                     <key> <string>field_id</string> </key>
                     <value> <string>your_string_field</string> </value>
                 </item>
@@ -108,7 +116,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: context.SaleOrder_getShoppingCartCustomer().getCareerSubordinationTitle()</string> </value>
+            <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getCareerSubordinationTitle()</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_city.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_city.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_city.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_city.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -10,9 +10,9 @@
             <key> <string>delegated_list</string> </key>
             <value>
               <list>
+                <string>default</string>
                 <string>required</string>
                 <string>title</string>
-                <string>default</string>
               </list>
             </value>
         </item>
@@ -69,9 +69,17 @@
                     <value> <string></string> </value>
                 </item>
                 <item>
+                    <key> <string>required</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
                     <key> <string>target</string> </key>
                     <value> <string></string> </value>
                 </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
               </dictionary>
             </value>
         </item>
@@ -80,6 +88,10 @@
             <value>
               <dictionary>
                 <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
                     <key> <string>field_id</string> </key>
                     <value> <string>your_string_field</string> </value>
                 </item>
@@ -113,7 +125,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: context.SaleOrder_getShoppingCartCustomer().getDefaultAddressCity()</string> </value>
+            <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultAddressCity()</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_street_address.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_street_address.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_street_address.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_street_address.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -10,9 +10,9 @@
             <key> <string>delegated_list</string> </key>
             <value>
               <list>
-                <string>title</string>
-                <string>required</string>
                 <string>default</string>
+                <string>required</string>
+                <string>title</string>
               </list>
             </value>
         </item>
@@ -69,9 +69,17 @@
                     <value> <string></string> </value>
                 </item>
                 <item>
+                    <key> <string>required</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
                     <key> <string>target</string> </key>
                     <value> <string></string> </value>
                 </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
               </dictionary>
             </value>
         </item>
@@ -80,6 +88,10 @@
             <value>
               <dictionary>
                 <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
                     <key> <string>field_id</string> </key>
                     <value> <string>your_text_area_field</string> </value>
                 </item>
@@ -113,7 +125,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: context.SaleOrder_getShoppingCartCustomer().getDefaultAddressStreetAddress()</string> </value>
+            <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultAddressStreetAddress()</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_zip_code.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_zip_code.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_zip_code.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_address_zip_code.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -10,9 +10,9 @@
             <key> <string>delegated_list</string> </key>
             <value>
               <list>
+                <string>default</string>
                 <string>required</string>
                 <string>title</string>
-                <string>default</string>
               </list>
             </value>
         </item>
@@ -69,9 +69,17 @@
                     <value> <string></string> </value>
                 </item>
                 <item>
+                    <key> <string>required</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
                     <key> <string>target</string> </key>
                     <value> <string></string> </value>
                 </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
               </dictionary>
             </value>
         </item>
@@ -80,6 +88,10 @@
             <value>
               <dictionary>
                 <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
                     <key> <string>field_id</string> </key>
                     <value> <string>your_integer_field</string> </value>
                 </item>
@@ -113,7 +125,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: context.SaleOrder_getShoppingCartCustomer().getDefaultAddressZipCode()</string> </value>
+            <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultAddressZipCode()</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_email_text.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_email_text.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_email_text.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_email_text.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -69,6 +69,10 @@
                     <value> <string></string> </value>
                 </item>
                 <item>
+                    <key> <string>required</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
                     <key> <string>target</string> </key>
                     <value> <string></string> </value>
                 </item>
@@ -115,16 +119,13 @@
   </record>
   <record id="2" aka="AAAAAAAAAAI=">
     <pickle>
-      <tuple>
-        <global name="TALESMethod" module="Products.Formulator.TALESField"/>
-        <tuple/>
-      </tuple>
+      <global name="TALESMethod" module="Products.Formulator.TALESField"/>
     </pickle>
     <pickle>
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: context.SaleOrder_getShoppingCartCustomer().getDefaultEmailText()</string> </value>
+            <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultEmailText()</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_telephone_text.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_telephone_text.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_telephone_text.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_default_telephone_text.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -10,8 +10,8 @@
             <key> <string>delegated_list</string> </key>
             <value>
               <list>
-                <string>title</string>
                 <string>default</string>
+                <string>title</string>
               </list>
             </value>
         </item>
@@ -71,6 +71,10 @@
                     <key> <string>target</string> </key>
                     <value> <string></string> </value>
                 </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
               </dictionary>
             </value>
         </item>
@@ -79,6 +83,10 @@
             <value>
               <dictionary>
                 <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
                     <key> <string>field_id</string> </key>
                     <value> <string>your_string_field</string> </value>
                 </item>
@@ -108,7 +116,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: context.SaleOrder_getShoppingCartCustomer().getDefaultTelephoneText()</string> </value>
+            <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultTelephoneText()</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_first_name.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_first_name.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_first_name.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_first_name.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -10,9 +10,9 @@
             <key> <string>delegated_list</string> </key>
             <value>
               <list>
+                <string>default</string>
                 <string>required</string>
                 <string>title</string>
-                <string>default</string>
               </list>
             </value>
         </item>
@@ -69,9 +69,17 @@
                     <value> <string></string> </value>
                 </item>
                 <item>
+                    <key> <string>required</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
                     <key> <string>target</string> </key>
                     <value> <string></string> </value>
                 </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
               </dictionary>
             </value>
         </item>
@@ -80,6 +88,10 @@
             <value>
               <dictionary>
                 <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
                     <key> <string>field_id</string> </key>
                     <value> <string>your_string_field</string> </value>
                 </item>
@@ -113,7 +125,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: context.SaleOrder_getShoppingCartCustomer().getFirstName()</string> </value>
+            <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getFirstName()</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_last_name.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_last_name.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_last_name.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewCustomerInformationDialog/your_last_name.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -10,9 +10,9 @@
             <key> <string>delegated_list</string> </key>
             <value>
               <list>
+                <string>default</string>
                 <string>required</string>
                 <string>title</string>
-                <string>default</string>
               </list>
             </value>
         </item>
@@ -69,9 +69,17 @@
                     <value> <string></string> </value>
                 </item>
                 <item>
+                    <key> <string>required</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
                     <key> <string>target</string> </key>
                     <value> <string></string> </value>
                 </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
               </dictionary>
             </value>
         </item>
@@ -80,6 +88,10 @@
             <value>
               <dictionary>
                 <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
                     <key> <string>field_id</string> </key>
                     <value> <string>your_string_field</string> </value>
                 </item>
@@ -113,7 +125,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: context.SaleOrder_getShoppingCartCustomer().getLastName()</string> </value>
+            <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getLastName()</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -90,6 +90,7 @@
                     <value>
                       <list>
                         <string>listbox_getSummaryAsHTML</string>
+                        <string>listbox_getDefaultImageAbsoluteUrl</string>
                       </list>
                     </value>
                 </item>

Modified: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog/listbox.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog/listbox.xml?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog/listbox.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog/listbox.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -12,10 +12,8 @@
               <list>
                 <string>columns</string>
                 <string>css_class</string>
-                <string>default_display_style</string>
                 <string>default_params</string>
                 <string>list_method</string>
-                <string>page_navigation_template</string>
                 <string>search</string>
                 <string>selection_name</string>
                 <string>title</string>
@@ -89,7 +87,7 @@
                           <string>Title</string>
                         </tuple>
                         <tuple>
-                          <string>getSummaryAsHTML</string>
+                          <string>getDefaultImageAbsoluteUrl</string>
                           <string></string>
                         </tuple>
                       </list>
@@ -100,10 +98,6 @@
                     <value> <string>nolabel</string> </value>
                 </item>
                 <item>
-                    <key> <string>default_display_style</string> </key>
-                    <value> <string></string> </value>
-                </item>
-                <item>
                     <key> <string>default_params</string> </key>
                     <value>
                       <list>
@@ -133,10 +127,6 @@
                     </value>
                 </item>
                 <item>
-                    <key> <string>page_navigation_template</string> </key>
-                    <value> <string></string> </value>
-                </item>
-                <item>
                     <key> <string>search</string> </key>
                     <value> <int>0</int> </value>
                 </item>
@@ -161,7 +151,7 @@
                           <string></string>
                         </tuple>
                         <tuple>
-                          <string>getSummaryAsHTML</string>
+                          <string>getDefaultImageAbsoluteUrl</string>
                           <string></string>
                         </tuple>
                       </list>

Added: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog/listbox_getDefaultImageAbsoluteUrl.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog/listbox_getDefaultImageAbsoluteUrl.xml?rev=42376&view=auto
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog/listbox_getDefaultImageAbsoluteUrl.xml (added)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewServiceChoiceDialog/listbox_getDefaultImageAbsoluteUrl.xml [utf8] Mon Jan 17 14:12:44 2011
@@ -0,0 +1,296 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ImageField" module="Products.ERP5Form.ImageField"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>listbox_getDefaultImageAbsoluteUrl</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>
+                <item>
+                    <key> <string>required_not_found</string> </key>
+                    <value> <string>Input is required but no input given.</string> </value>
+                </item>
+                <item>
+                    <key> <string>too_long</string> </key>
+                    <value> <string>Too much input was given.</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>overrides</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>alternate_name</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>css_class</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>description</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>display_maxwidth</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>display_width</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>editable</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>enabled</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>external_validator</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>extra</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>hidden</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>image_display</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>image_format</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>image_resolution</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>max_length</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>required</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>truncate</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>unicode</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>whitespace_preserve</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>tales</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>alternate_name</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>css_class</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>description</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>display_maxwidth</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>display_width</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>editable</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>enabled</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>external_validator</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>extra</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>hidden</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>image_display</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>image_format</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>image_resolution</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>max_length</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>required</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>truncate</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>unicode</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>whitespace_preserve</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>alternate_name</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>css_class</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>description</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>display_maxwidth</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>display_width</string> </key>
+                    <value> <int>20</int> </value>
+                </item>
+                <item>
+                    <key> <string>editable</string> </key>
+                    <value> <int>1</int> </value>
+                </item>
+                <item>
+                    <key> <string>enabled</string> </key>
+                    <value> <int>1</int> </value>
+                </item>
+                <item>
+                    <key> <string>external_validator</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>extra</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>hidden</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>image_display</string> </key>
+                    <value> <string>thumbnail</string> </value>
+                </item>
+                <item>
+                    <key> <string>image_format</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>image_resolution</string> </key>
+                    <value> <int>75</int> </value>
+                </item>
+                <item>
+                    <key> <string>max_length</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>required</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string>Image</string> </value>
+                </item>
+                <item>
+                    <key> <string>truncate</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>unicode</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>whitespace_preserve</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/vifib_web/bt/dependency_list
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/bt/dependency_list?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/bt/dependency_list [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/bt/dependency_list [utf8] Mon Jan 17 14:12:44 2011
@@ -2,5 +2,4 @@ erp5_web
 erp5_dms
 vifib_crm
 erp5_jquery
-erp5_km
-erp5_commerce
\ No newline at end of file
+erp5_km
\ No newline at end of file

Modified: erp5/trunk/bt5/vifib_web/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/bt/revision?rev=42376&r1=42375&r2=42376&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/bt/revision [utf8] Mon Jan 17 14:12:44 2011
@@ -1 +1 @@
-236
\ No newline at end of file
+242
\ No newline at end of file



More information about the Erp5-report mailing list