Hello, i'm trying to use the FSSession to have a little shopping cart for e-commerce. I can initialize the dictionary named "cart" and it is created in the datafile. When i try to update it with the data from my form i get the error: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'None' object has no attribute 'update' For curiosity i tried the example bundled in README.txt of the FSSEssion and macically i obtain the same error. this is the code i used: <dtml-call FSSession> <dtml-unless "FSSession.has_key('cart')"> <dtml-call "FSSession.set('cart',{})"> </dtml-unless> <dtml-comment> ##### <dtml-var "REQUEST.form"><br> <dtml-in "REQUEST.form.items()"> <dtml-var sequence-item> </dtml-in> This is only to check that the form passes the values correctly ######## </dtml-comment> <dtml-call "FSSession['carrello'].update(REQUEST.form)"> Can anyone help me? Thanks ATIS
Hi Marcello On Wed, 7 Jun 2000, Marcello Lupo wrote:
and macically i obtain the same error. this is the code i used: <dtml-call FSSession> <dtml-unless "FSSession.has_key('cart')"> <dtml-call "FSSession.set('cart',{})"> </dtml-unless>
<dtml-call "FSSession['carrello'].update(REQUEST.form)">
Shouldn't the above be: <dtml-call "FSSession['cart'].update(REQUEST.form)"> Pavlos
Pavlos Christoforou wrote:
Hi Marcello
On Wed, 7 Jun 2000, Marcello Lupo wrote:
and macically i obtain the same error. this is the code i used: <dtml-call FSSession> <dtml-unless "FSSession.has_key('cart')"> <dtml-call "FSSession.set('cart',{})"> </dtml-unless>
<dtml-call "FSSession['carrello'].update(REQUEST.form)">
Shouldn't the above be:
<dtml-call "FSSession['cart'].update(REQUEST.form)">
Pavlos
Sorry ... Yes I use "carrello" in italian stay for cart and to send the e-mail i have changed it in cart and in that point i forgotten to change carrello in cart for the e-mail. In few words i use everywhere "carrello". Sorry form the mistake but the problem is not there :-) Thanks, Marcello
participants (2)
-
Marcello Lupo -
Pavlos Christoforou