[Zope] How to test/debug a Product in stand alone?

Chui Tey Chui.Tey@env.qld.gov.au
Thu, 30 Sep 1999 09:46:47 +1000


Went through the tutorial where a poll product was created, and I
thought I understood it. But no.... Applying "monkey see, monkey do" to
my own python stuff to transform it into a product, I somehow introduced
bugs into previously working code. 

What do I run to debug a product module? There is a gap in the tutorial
between explaining how we can check our original python code but little
about debugging a product.

Running ZPublisher/test on the product no longer works because the test
routine says that it couldn't import Persistent. I tried ZPublisher/test
the poll product and got the same error message. Obviously when Zope
pulls itself up it is changing its search path somehow. I added
sys.path.insert(0,'myzopepath/lib/python/ZODB') and some of the error
messages went away but not the 'cannot import name Persistent' was
rather stubborn and refuses to go away. Has anyone sorted this one out
before?