Commit 0f8d1fd2 authored by Romain Courteaud's avatar Romain Courteaud

Remove erp5_commerce dependency.

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

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42376 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6a3bff7e
...@@ -50,70 +50,22 @@ ...@@ -50,70 +50,22 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string>"""Add selected product to the cart and continue"""\n
"""Add selected product to the cart and continue"""\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
prefered_resource = portal.portal_preferences.getPreferredInstanceSetupResource()\n
\n \n
##Get item list\n if len(uids) != 1:\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
return context.Base_redirect(dialog_id,\n return context.Base_redirect(dialog_id,\n
keep_items={\'portal_status_message\':context.Base_translateString("Please select one service.")})\n keep_items={\'portal_status_message\':context.Base_translateString("Please select one service.")})\n
\n else:\n
\n session = context.WebSection_getVifibSession()\n
##Reset the cart and get new shopping cart\n session[\'instance_software_product_uid\'] = uids[0]\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
\n \n
if kw.has_key(\'came_from\'):\n if kw.has_key(\'came_from\'):\n
#we override the context to redirect the user to the next web section\n #we override the context to redirect the user to the next web section\n
context = portal.restrictedTraverse(kw[\'came_from\'])\n context = portal.restrictedTraverse(kw[\'came_from\'])\n
\n \n
context.WebSection_viewNextStep()\n context.WebSection_viewNextStep()\n
</string> </value>
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
...@@ -157,22 +109,10 @@ context.WebSection_viewNextStep()\n ...@@ -157,22 +109,10 @@ context.WebSection_viewNextStep()\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</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>len</string>
<string>shopping_cart</string> <string>session</string>
<string>shopping_cart_items</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>product_url</string> <string>_write_</string>
<string>False</string>
<string>line_found</string>
<string>order_line</string>
<string>int</string>
<string>new_quantity</string>
<string>True</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -50,42 +50,15 @@ ...@@ -50,42 +50,15 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <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 portal = context.getPortalObject()\n
prefered_resource = portal.portal_preferences.getPreferredInstanceSetupResource()\n
service = portal.restrictedTraverse(prefered_resource)\n
\n \n
##Get item list\n if len(uids) != 1:\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
return context.Base_redirect(dialog_id,\n return context.Base_redirect(dialog_id,\n
keep_items={\'portal_status_message\':context.Base_translateString("Please select one software release.")})\n keep_items={\'portal_status_message\':context.Base_translateString("Please select one software release.")})\n
\n else:\n
shopping_cart = context.SaleOrder_getShoppingCart()\n session = context.WebSection_getVifibSession()\n
shopping_cart_items = context.SaleOrder_getShoppingCartItemList()\n session[\'instance_software_release_uid\'] = uids[0]\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
\n \n
if kw.has_key(\'came_from\'):\n if kw.has_key(\'came_from\'):\n
#we override the context to redirect the user to the next web section\n #we override the context to redirect the user to the next web section\n
...@@ -135,22 +108,10 @@ context.WebSection_viewNextStep()\n ...@@ -135,22 +108,10 @@ context.WebSection_viewNextStep()\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</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>len</string>
<string>shopping_cart</string> <string>session</string>
<string>shopping_cart_items</string>
<string>NotImplementedError</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>product_url</string> <string>_write_</string>
<string>False</string>
<string>line_found</string>
<string>order_line</string>
<string>True</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -53,13 +53,17 @@ ...@@ -53,13 +53,17 @@
<value> <string>portal = context.getPortalObject()\n <value> <string>portal = context.getPortalObject()\n
person_uid = portal.ERP5Site_getPropertyFromAuthenticatedMemberPersonValue(\'uid\')\n person_uid = portal.ERP5Site_getPropertyFromAuthenticatedMemberPersonValue(\'uid\')\n
\n \n
default_open_order = portal.portal_catalog.getResultValue(portal_type="Open Sale Order",\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 default_destination_section_uid=person_uid)\n
]\n
\n \n
if not default_open_order:\n return portal.portal_catalog(\n
return []\n portal_type="Open Sale Order Line",\n
\n parent_uid=open_order_uid_list,\n
return default_open_order.contentValues(**kw)\n **kw\n
)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -101,7 +105,10 @@ return default_open_order.contentValues(**kw)\n ...@@ -101,7 +105,10 @@ return default_open_order.contentValues(**kw)\n
<string>context</string> <string>context</string>
<string>portal</string> <string>portal</string>
<string>person_uid</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> <string>_apply_</string>
</tuple> </tuple>
</value> </value>
......
...@@ -51,25 +51,16 @@ ...@@ -51,25 +51,16 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""Get the release of the selected product"""\n <value> <string>"""Get the release of the selected product"""\n
portal = context.getPortalObject()\n session = context.WebSection_getVifibSession()\n
prefered_resource = portal.portal_preferences.getPreferredInstanceSetupResource()\n uid = session.get(\'instance_software_product_uid\', None)\n
service = portal.restrictedTraverse(prefered_resource)\n
\n
shopping_cart_items = context.SaleOrder_getShoppingCartItemList()\n
\n \n
# assert there is only one item\n # assert there is only one item\n
if len(shopping_cart_items) != 1:\n if uid is None:\n
raise NotImplementedError, "There should be only one shopping card item"\n raise AttributeError, "There should be only one selected software product"\n
\n else:\n
order_line = shopping_cart_items[0]\n return context.portal_catalog(\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 portal_type="Software Release",\n
default_aggregate_uid=software_product.getUid(),\n default_aggregate_uid=uid,\n
validation_state=["shared", "shared_alive", "released", "released_alive", "published", "published_alive"]\n validation_state=["shared", "shared_alive", "released", "released_alive", "published", "published_alive"]\n
)\n )\n
</string> </value> </string> </value>
...@@ -82,7 +73,7 @@ return context.portal_catalog(\n ...@@ -82,7 +73,7 @@ return context.portal_catalog(\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <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>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -102,29 +93,19 @@ return context.portal_catalog(\n ...@@ -102,29 +93,19 @@ return context.portal_catalog(\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>4</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>dialog_id</string>
<string>uids</string>
<string>quantity</string>
<string>reset_shopping_cart</string>
<string>kw</string> <string>kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</string> <string>session</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>None</string> <string>None</string>
<string>uid</string>
<string>AttributeError</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -136,12 +117,7 @@ return context.portal_catalog(\n ...@@ -136,12 +117,7 @@ return context.portal_catalog(\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple>
<none/> <none/>
<list/>
<int>1</int>
<int>1</int>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -50,7 +50,25 @@ ...@@ -50,7 +50,25 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>return len(context.searchFolder(portal_type="Computer Partition",slap_state="busy"))\n <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> </string> </value>
</item> </item>
<item> <item>
...@@ -87,9 +105,23 @@ ...@@ -87,9 +105,23 @@
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>len</string> <string>DateTime</string>
<string>random</string>
<string>choice</string>
<string>string</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</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> </tuple>
</value> </value>
</item> </item>
...@@ -106,7 +138,7 @@ ...@@ -106,7 +138,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Computer_getFreeComputerPartition</string> </value> <value> <string>WebSection_getVifibSession</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
...@@ -50,9 +50,13 @@ ...@@ -50,9 +50,13 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""Update customer informations"""\n <value> <string encoding="cdata"><![CDATA[
"""Update customer informations"""\n
portal = context.getPortalObject()\n
\n \n
context.SaleOrder_getShoppingCartCustomer().edit(\n person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n
person.edit(\n
last_name=last_name,\n last_name=last_name,\n
first_name=first_name,\n first_name=first_name,\n
career_subordination_title=career_subordination_title,\n career_subordination_title=career_subordination_title,\n
...@@ -63,8 +67,25 @@ context.SaleOrder_getShoppingCartCustomer().edit(\n ...@@ -63,8 +67,25 @@ context.SaleOrder_getShoppingCartCustomer().edit(\n
default_address_city=default_address_city,\n default_address_city=default_address_city,\n
)\n )\n
\n \n
context.WebSection_viewNextStep()\n # return context.WebSection_viewNextStep()\n
</string> </value> 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>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
...@@ -111,6 +132,13 @@ context.WebSection_viewNextStep()\n ...@@ -111,6 +132,13 @@ context.WebSection_viewNextStep()\n
<string>kw</string> <string>kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</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> </tuple>
</value> </value>
</item> </item>
...@@ -127,7 +155,7 @@ context.WebSection_viewNextStep()\n ...@@ -127,7 +155,7 @@ context.WebSection_viewNextStep()\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>SaleOrder_setCustomerInformation</string> </value> <value> <string>WebSection_setCustomerInformation</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</item> </item>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string>SaleOrder_setCustomerInformation</string> </value> <value> <string>WebSection_setCustomerInformation</string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>title</string>
<string>default</string> <string>default</string>
<string>title</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -71,6 +71,10 @@ ...@@ -71,6 +71,10 @@
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -78,6 +82,10 @@ ...@@ -78,6 +82,10 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>your_string_field</string> </value> <value> <string>your_string_field</string> </value>
...@@ -108,7 +116,7 @@ ...@@ -108,7 +116,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.SaleOrder_getShoppingCartCustomer().getCareerSubordinationTitle()</string> </value> <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getCareerSubordinationTitle()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>default</string>
<string>required</string> <string>required</string>
<string>title</string> <string>title</string>
<string>default</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -68,10 +68,18 @@ ...@@ -68,10 +68,18 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -79,6 +87,10 @@ ...@@ -79,6 +87,10 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>your_string_field</string> </value> <value> <string>your_string_field</string> </value>
...@@ -113,7 +125,7 @@ ...@@ -113,7 +125,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.SaleOrder_getShoppingCartCustomer().getDefaultAddressCity()</string> </value> <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultAddressCity()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>title</string>
<string>required</string>
<string>default</string> <string>default</string>
<string>required</string>
<string>title</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -68,10 +68,18 @@ ...@@ -68,10 +68,18 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -79,6 +87,10 @@ ...@@ -79,6 +87,10 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>your_text_area_field</string> </value> <value> <string>your_text_area_field</string> </value>
...@@ -113,7 +125,7 @@ ...@@ -113,7 +125,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.SaleOrder_getShoppingCartCustomer().getDefaultAddressStreetAddress()</string> </value> <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultAddressStreetAddress()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>default</string>
<string>required</string> <string>required</string>
<string>title</string> <string>title</string>
<string>default</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -68,10 +68,18 @@ ...@@ -68,10 +68,18 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -79,6 +87,10 @@ ...@@ -79,6 +87,10 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>your_integer_field</string> </value> <value> <string>your_integer_field</string> </value>
...@@ -113,7 +125,7 @@ ...@@ -113,7 +125,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.SaleOrder_getShoppingCartCustomer().getDefaultAddressZipCode()</string> </value> <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultAddressZipCode()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -68,6 +68,10 @@ ...@@ -68,6 +68,10 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -115,16 +119,13 @@ ...@@ -115,16 +119,13 @@
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.SaleOrder_getShoppingCartCustomer().getDefaultEmailText()</string> </value> <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultEmailText()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>title</string>
<string>default</string> <string>default</string>
<string>title</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -71,6 +71,10 @@ ...@@ -71,6 +71,10 @@
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -78,6 +82,10 @@ ...@@ -78,6 +82,10 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>your_string_field</string> </value> <value> <string>your_string_field</string> </value>
...@@ -108,7 +116,7 @@ ...@@ -108,7 +116,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.SaleOrder_getShoppingCartCustomer().getDefaultTelephoneText()</string> </value> <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultTelephoneText()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>default</string>
<string>required</string> <string>required</string>
<string>title</string> <string>title</string>
<string>default</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -68,10 +68,18 @@ ...@@ -68,10 +68,18 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -79,6 +87,10 @@ ...@@ -79,6 +87,10 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>your_string_field</string> </value> <value> <string>your_string_field</string> </value>
...@@ -113,7 +125,7 @@ ...@@ -113,7 +125,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.SaleOrder_getShoppingCartCustomer().getFirstName()</string> </value> <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getFirstName()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>default</string>
<string>required</string> <string>required</string>
<string>title</string> <string>title</string>
<string>default</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -68,10 +68,18 @@ ...@@ -68,10 +68,18 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -79,6 +87,10 @@ ...@@ -79,6 +87,10 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>your_string_field</string> </value> <value> <string>your_string_field</string> </value>
...@@ -113,7 +125,7 @@ ...@@ -113,7 +125,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.SaleOrder_getShoppingCartCustomer().getLastName()</string> </value> <value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getLastName()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -90,6 +90,7 @@ ...@@ -90,6 +90,7 @@
<value> <value>
<list> <list>
<string>listbox_getSummaryAsHTML</string> <string>listbox_getSummaryAsHTML</string>
<string>listbox_getDefaultImageAbsoluteUrl</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -12,10 +12,8 @@ ...@@ -12,10 +12,8 @@
<list> <list>
<string>columns</string> <string>columns</string>
<string>css_class</string> <string>css_class</string>
<string>default_display_style</string>
<string>default_params</string> <string>default_params</string>
<string>list_method</string> <string>list_method</string>
<string>page_navigation_template</string>
<string>search</string> <string>search</string>
<string>selection_name</string> <string>selection_name</string>
<string>title</string> <string>title</string>
...@@ -89,7 +87,7 @@ ...@@ -89,7 +87,7 @@
<string>Title</string> <string>Title</string>
</tuple> </tuple>
<tuple> <tuple>
<string>getSummaryAsHTML</string> <string>getDefaultImageAbsoluteUrl</string>
<string></string> <string></string>
</tuple> </tuple>
</list> </list>
...@@ -99,10 +97,6 @@ ...@@ -99,10 +97,6 @@
<key> <string>css_class</string> </key> <key> <string>css_class</string> </key>
<value> <string>nolabel</string> </value> <value> <string>nolabel</string> </value>
</item> </item>
<item>
<key> <string>default_display_style</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>default_params</string> </key> <key> <string>default_params</string> </key>
<value> <value>
...@@ -132,10 +126,6 @@ ...@@ -132,10 +126,6 @@
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>page_navigation_template</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>search</string> </key> <key> <string>search</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
...@@ -161,7 +151,7 @@ ...@@ -161,7 +151,7 @@
<string></string> <string></string>
</tuple> </tuple>
<tuple> <tuple>
<string>getSummaryAsHTML</string> <string>getDefaultImageAbsoluteUrl</string>
<string></string> <string></string>
</tuple> </tuple>
</list> </list>
......
<?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>
...@@ -3,4 +3,3 @@ erp5_dms ...@@ -3,4 +3,3 @@ erp5_dms
vifib_crm vifib_crm
erp5_jquery erp5_jquery
erp5_km erp5_km
erp5_commerce
\ No newline at end of file
236 242
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment