Export to GitHub

getpaid - issue #304

addressbook


Posted on Dec 27, 2010 by Grumpy Lion

What steps will reproduce the problem? 1.checkout your cart 2.press the bouton Load from adress book 3. a pop up page opens

What is the expected output? What do you see instead? I expect to have a view on my address book I see an error page ... Traceback (innermost last): Module ZPublisher.Publish, line 127, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 47, in call_object Module Products.Five.browser.pagetemplatefile, line 126, in call Module Products.Five.browser.pagetemplatefile, line 60, in call Module zope.pagetemplate.pagetemplate, line 115, in pt_render Module zope.tal.talinterpreter, line 271, in call Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 620, in do_insertText_tal Module Products.PageTemplates.Expressions, line 227, in evaluateText Module zope.tales.tales, line 696, in evaluate - URL: /home/dan/Plones/405/zinstance/src/Products.PloneGetPaid/Products/PloneGetPaid/browser/templates/addressbook-listing.pt - Line 8, Column 12 - Expression: <PathExpr standard:u'view/getEntryScripts'> - Names: {'args': (), 'container': <PloneSite at /Plone>, 'context': <PloneSite at /Plone>, 'default': <object object at 0xb7589688>, 'here': <PloneSite at /Plone>, 'loop': {}, 'nothing': None, 'options': {}, 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xd01608c>, 'request': <HTTPRequest, URL=http://127.0.0.1:9080/Plone/@@addresbook-listing&gt;, 'root': <Application at >, 'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0xc3dd5ac>, 'traverse_subpath': [], 'user': <PropertiedUser 'admin'>, 'view': <Products.Five.metaclass.AddressBookView object at 0xd0321ec>, 'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0xd032bac>} Module zope.tales.expressions, line 217, in call Module Products.PageTemplates.Expressions, line 157, in _eval Module Products.PageTemplates.Expressions, line 119, in render Module Products.PloneGetPaid.browser.checkout, line 907, in getEntryScripts AttributeError: 'module' object has no attribute 'getFieldsNames' Please use labels and text to provide additional information.

Comment #1

Posted on Dec 27, 2010 by Grumpy Lion

just a typo getFieldsNames instead of getFieldNames in the line 907 for name in schema.getFieldNames(interfaces.IShippingAddress):

Status: Accepted

Labels:
Type-Defect Priority-Medium Release-trunk Difficulty-Newbie