RajatShukla / getpaid

Automatically exported from code.google.com/p/getpaid
0 stars 0 forks source link

addressbook #304

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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>,
       '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.

Original issue reported on code.google.com by danielle...@gmail.com on 27 Dec 2010 at 3:11

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

Original comment by danielle...@gmail.com on 27 Dec 2010 at 3:48