[getpaid] r2880 committed - Fire the created transition after the order is fully populated

0 views
Skip to first unread message

codesite...@google.com

unread,
Aug 6, 2009, 4:44:35 PM8/6/09
to getpaid...@groups.google.com
Revision: 2880
Author: larubbio
Date: Thu Aug 6 13:43:41 2009
Log: Fire the created transition after the order is fully populated
http://code.google.com/p/getpaid/source/detail?r=2880

Modified:
/getpaid.paypal/trunk/src/getpaid/paypal/browser/paypalbutton.py

=======================================
--- /getpaid.paypal/trunk/src/getpaid/paypal/browser/paypalbutton.py Mon
Jun 15 20:04:39 2009
+++ /getpaid.paypal/trunk/src/getpaid/paypal/browser/paypalbutton.py Thu
Aug 6 13:43:41 2009
@@ -32,8 +32,6 @@
new_order_id = order_manager.newOrderId()
order = Order()

- order.finance_workflow.fireTransition('create')
-
# register the payment processor name to make the workflow
handlers happy
order.processor_id = manage_options.payment_processor

@@ -48,6 +46,9 @@
# make cart safe for persistence by using pickling
order.shopping_cart = loads(dumps(cart))
order.user_id = getSecurityManager().getUser().getId()
+
+ order.finance_workflow.fireTransition('create')
+
order_manager.store(order)

# have to wait for the order to be created and the cart added for
this to work

Reply all
Reply to author
Forward
0 new messages