Commit fe2f1fa6 authored by Nicolas Dumazet's avatar Nicolas Dumazet

revert r38744:38752 now that Order is an abstract portal type


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38778 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 40a51e08
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -74,9 +77,9 @@ else:\n ...@@ -74,9 +77,9 @@ else:\n
shopping_cart_id = \'shopping_cart\'\n shopping_cart_id = \'shopping_cart\'\n
session = portal_sessions[session_id]\n session = portal_sessions[session_id]\n
if not shopping_cart_id in session.keys():\n if not shopping_cart_id in session.keys():\n
from Products.ERP5Type.Document import newTempOrder\n
web_site = context.getWebSiteValue()\n web_site = context.getWebSiteValue()\n
from Products.ERP5Type.Document import newTempSaleOrder\n shopping_cart = newTempOrder(portal_sessions, shopping_cart_id)\n
shopping_cart = newTempSaleOrder(portal_sessions, shopping_cart_id)\n
shopping_cart.setPriceCurrency(web_site.WebSite_getShoppingCartDefaultCurrency().getRelativeUrl())\n shopping_cart.setPriceCurrency(web_site.WebSite_getShoppingCartDefaultCurrency().getRelativeUrl())\n
session[shopping_cart_id] = shopping_cart\n session[shopping_cart_id] = shopping_cart\n
\n \n
...@@ -141,9 +144,9 @@ else:\n ...@@ -141,9 +144,9 @@ else:\n
<string>shopping_cart_id</string> <string>shopping_cart_id</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>session</string> <string>session</string>
<string>web_site</string>
<string>Products.ERP5Type.Document</string> <string>Products.ERP5Type.Document</string>
<string>newTempSaleOrder</string> <string>newTempOrder</string>
<string>web_site</string>
<string>shopping_cart</string> <string>shopping_cart</string>
<string>_write_</string> <string>_write_</string>
</tuple> </tuple>
......
2010-09-29 2010-09-30 nicolas.dumazet
* Revert changes from 29th after adding Order abstract portal type to erp5_trade
2010-09-29 nicolas.dumazet
* do not use newTempOrder, create temporary sale order instead (portal type classes require the portal type to exist to create temporary objects, and 'Order' portal type does not exist) * do not use newTempOrder, create temporary sale order instead (portal type classes require the portal type to exist to create temporary objects, and 'Order' portal type does not exist)
2009-09-14 lucas 2009-09-14 lucas
......
260 261
\ 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