kapilt / getpaid

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

Generating Test Orders (not working for 0.7.0) #208

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Follow: http://code.google.com/p/getpaid/wiki/GeneratingTestOrders

What is the expected output? What do you see instead?
We should be see 20 orders created, we see the following traceback instead

    *  Module ZPublisher.Publish, line 119, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 42, in call_object
    * Module Products.ExternalMethod?.ExternalMethod?, line 231, in call

          traceback_info: ((<PloneSite? at /pgp>,), {}, None) 

    * Module
/opt/zope/buildout/getpaid.buildout/parts/product-checkouts/PloneGetPaid?/Extens
ions/gen_order.py,
line 27, in createOrders 

AttributeError?: 'module' object has no attribute 'LineItem?' 

Original issue reported on code.google.com by dennisha...@gmail.com on 21 Aug 2008 at 7:53

GoogleCodeExporter commented 8 years ago
LineItem is a class in item not cart:
added item to list of getpaid.core imports;
renamed temp variable to myItem;
assigned myItem to item.LineItem().

Original comment by mcgruff....@gmail.com on 22 Aug 2008 at 8:30

GoogleCodeExporter commented 8 years ago

Original comment by mcgruff....@gmail.com on 22 Aug 2008 at 8:33

GoogleCodeExporter commented 8 years ago
This script generates basic orders, but doesn't populate them with proper 
details, so
when attempting to view the details of a particular order, the following
AttributeError is thrown:

Exception Type  AttributeError
Exception Value 'Order' object has no attribute 'contact_information'

Original comment by ctxl...@gmail.com on 11 Oct 2008 at 11:03