Hi,

I have a shopping_cart class that I use with a session to store  
orders information.

In this shopping cart, I have other object like customer contact.

class CustomerContact:
     def __init__(self):
         self.address = {}

     def add_address(self, add_dict, Company, Contact, Address, City,  
State, Zip, Country, Phone, Fax, Email):
         self.address[add_dict] = { "Company" : Company,  "Contact" :  
Contact,
                                                     "Address" :  
Address, "City" : City,
                                                     "State" :  
State,  "Zip" : Zip,
                                                     "Country" :  
Country, "Phone" : Phone,
                                                     "Fax" : Fax,  
"Email" : Email }

it is quite basic.

In my shopping cart I assign a variable to this object in __init__.

Step 1.  User fill the address required fields, then commit, it will  
set three addresses [add_dict] for billing, shipping, other
To set the address I use : request.session 
['shopping_cart'].customer_contact.add_address("billing", alltheinfo)

Step 2. It display a payment page which also shows the filled  
address. Address are display correctly

Step 3. Then it display a validation page. My dictionnary is somehow  
reset, the keys are still there but nothing is assign to it.


Is my logic erroneous? I just dont understand why my dictionnary get  
reset between step2 and step3.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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