Thank you so much for this link. This must go down as the single most helpful tip I have received since starting to work with Plone.
2009/3/11 rafael <[email protected]> > > Hi hannesc, > > Are you debuging the code? The best thing I did last month was start using > boa-constructor ide to debug my python zope code (there is a good tutorial > about this... > http://michaelthornhill.blogspot.com/2005/09/how-to-debug-zopeplone-with-ide.html > I couldn't find in this traceback no line of code in your getpaid.vcs... > This error is usually when you try to treat a non list object as a list... > > Rafael > > > > > > hannesc escreveu: > > hannesc wrote: > > > >> Hi guys > >> > >> As many of you might remember from earlier questions I posted, I am > >> trying to write a payment processor for the South African company VCS. > >> I would like to thank everyone that has been helping me to date. > >> > >> I am having some trouble when posting the users details though. After > >> the user fills in his information (addresses, etc.) and submits it, I > >> get the following error message: > >> > >> Time 2009/03/10 13:08:11.036 GMT+2 > >> User Name (User Id) hannes (hannes) > >> Request URL http://localhost:8080/GetPaid/@@getpaid-checkout-wizard > >> Exception Type TypeError > >> Exception Value iteration over non-sequence > >> > >> Traceback (innermost last): > >> > >> * Module ZPublisher.Publish, line 119, in publish > >> * Module ZPublisher.mapply, line 88, in mapply > >> * Module ZPublisher.Publish, line 42, in call_object > >> * Module Products.PloneGetPaid.browser.checkout, line 352, in > >> __call__ > >> * Module getpaid.wizard._wizard, line 38, in __call__ > >> * Module getpaid.wizard._wizard, line 28, in update > >> * Module getpaid.wizard._wizard, line 260, in update > >> * Module getpaid.wizard._wizard, line 227, in transitionTo > >> * Module getpaid.wizard._wizard, line 66, in update > >> * Module getpaid.wizard._wizard, line 158, in > >> _extractRequestVariables > >> > >> TypeError: iteration over non-sequence > >> > >> REQUEST > >> > >> form > >> > >> form.name u'123' > >> form.email_html_format u'Yes' > >> form.bill_state_required_marker u'True' > >> form.phone_number u'123' > >> -C u'' > >> form.ship_same_billing u'on' > >> order_id u'348611394' > >> form.email u'123' > >> form.marketing_preference.used u'' > >> form.bill_postal_code u'123' > >> form.bill_city u'123' > >> cur_step u'checkout-address-info' > >> form.bill_name u'123' > >> form.email_html_format-empty-marker u'1' > >> form.bill_state-empty-marker u'1' > >> form.bill_country u'ZA' > >> form.actions.continue u'Continue' > >> form.bill_second_line u'123' > >> form.bill_state u'ZA-GT' > >> form.bill_first_line u'123' > >> > >> cookies > >> > >> tree-s 'eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuxEQ9AIOOB9Q' > >> > >> lazy items > >> > >> SESSION <bound method SessionDataManager.getSessionData of > >> <SessionDataManager at /session_data_manager>> > >> > >> other > >> > >> form.email_html_format u'Yes' > >> form.bill_first_line u'123' > >> -C u'' > >> form.actions.continue u'Continue' > >> AUTHENTICATION_PATH '' > >> form.bill_country u'ZA' > >> LANGUAGE 'en-us' > >> AUTHENTICATED_USER <PropertiedUser 'hannes'> > >> form.email u'123' > >> form.bill_state_required_marker u'True' > >> SERVER_URL 'http://localhost:8080' > >> form.bill_city u'123' > >> cur_step u'checkout-address-info' > >> order_id u'348611394' > >> form.email_html_format-empty-marker u'1' > >> ACTUAL_URL 'http://localhost:8080/GetPaid/@@getpaid-checkout-wizard' > >> URL 'http://localhost:8080/GetPaid/@@getpaid-checkout-wizard' > >> PUBLISHED <Products.Five.metaclass.CheckoutWizard object at > >> 0xb3835dcc> > >> form.bill_state u'ZA-GT' > >> form.phone_number u'123' > >> form.name u'123' > >> form.ship_same_billing u'on' > >> TraversalRequestNameStack [] > >> form.marketing_preference.used u'' > >> form.bill_postal_code u'123' > >> LANGUAGE_TOOL > <Products.PloneLanguageTool.LanguageTool.LanguageBinding > >> instance at 0xb3c1d42c> > >> form.bill_name u'123' > >> form.bill_state-empty-marker u'1' > >> form.bill_second_line u'123' > >> URL0 http://localhost:8080/GetPaid/@@getpaid-checkout-wizard > >> URL1 http://localhost:8080/GetPaid > >> URL2 http://localhost:8080 > >> BASE0 http://localhost:8080 > >> BASE1 http://localhost:8080 > >> BASE2 http://localhost:8080/GetPaid > >> BASE3 http://localhost:8080/GetPaid/@@getpaid-checkout-wizard > >> > >> environ > >> > >> HTTP_COOKIE 'tree-s="eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuxEQ9AIOOB9Q"' > >> SERVER_SOFTWARE 'Zope/(Zope 2.10.6-final, python 2.4.5, linux2) > >> ZServer/1.1 Plone/3.1.7' > >> SCRIPT_NAME '' > >> REQUEST_METHOD 'POST' > >> HTTP_KEEP_ALIVE '300' > >> SERVER_PROTOCOL 'HTTP/1.1' > >> channel.creation_time 1236683204 > >> CONNECTION_TYPE 'keep-alive' > >> HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' > >> HTTP_USER_AGENT 'Mozilla/5.0 (X11; U; Linux i686; en-US; > rv:1.9.0.7) > >> Gecko/2009030422 Ubuntu/8.10 (intrepid) Firefox/3.0.7' > >> HTTP_REFERER 'http://localhost:8080/GetPaid/@@getpaid-checkout-wizard' > >> SERVER_NAME '0.0.0.0' > >> REMOTE_ADDR '127.0.0.1' > >> PATH_TRANSLATED '/GetPaid/@@getpaid-checkout-wizard' > >> SERVER_PORT '8080' > >> CONTENT_LENGTH '2586' > >> HTTP_HOST 'localhost:8080' > >> HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/ > >> *;q=0.8' > >> GATEWAY_INTERFACE 'CGI/1.1' > >> HTTP_ACCEPT_LANGUAGE 'en-us,en;q=0.5' > >> CONTENT_TYPE 'multipart/form-data; > >> boundary=---------------------------3688032017668515501959531889' > >> HTTP_ACCEPT_ENCODING 'gzip,deflate' > >> PATH_INFO '/GetPaid/@@getpaid-checkout-wizard' > >> > >> Does anyone know what the heck could be wrong. :P > >> > > > > OK, I have been now playing with it, and I am now all out of ideas. No > > matter what I change or where I change it, I still keep getting the > > above error. The payment processor source can be found at > > http://www.opennetworks.co.za/getpaid.vcs.tar.gz > > > > Someone please help -.- > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" 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/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~---
