My online store keeps everything in a cart. When someone makes an
order, it sends the order to the bank's server for payment processing
then sends them back -- similar to paypal.

What I'm trying to do is pass their cart, complete with everything in
it, over to the bank and back again. This is where I'm running into a
problem.

So far, the closest I've come is pickling it, passing it in a hidden
field, then unpickling it when it comes back:

picklecart = cPickle.dumps(cart.items())
fields +=       '<input type="hidden" name="picklecart" value="%s">\n' %
(picklecart)

then, at the other end:
cart = cPickle.loads(str(page_data['picklecart']))

Problem is, that throws an ImportError (No module named cart_manager)
cart_manager.py holds the Cart classes. Directory structure is
store/cart_manager
store/models
store/urls
store/views

I know it's there, but it's not finding it when this all comes back.

So, any ideas on how to make this work? Something I'm missing?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to