My favorites | Sign in
Project Logo
                
Search
for
Updated Jul 12, 2007 by kapilt
Labels: developer
GeneratingTestOrders  
generating test orders

Generating Test Orders

In order to make testing our admin screens easier, we've put together a procedure for generating test order data.

To create this test data, In the ZMI of the plone portal where getpaid is installed, and an external method with the following values:

id : generate_orders
module : PloneGetPaid.gen_order
function : createOrders

if you test this function, it will return sayings its created 20 orders.

now if you go to the getpaid admin screens and click on the order management you'll be able to search, and manipulate orders and their workflow states.


Comment by dennisharrison, Aug 21, 2008

Using PGP 0.7.0 from svn, this is the traceback we get when trying this out.

  • 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?/Extensions/gen_order.py, line 27, in createOrders

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


Sign in to add a comment
Hosted by Google Code