11 Jul
2002
11 Jul
'02
7:34 p.m.
Dirk Datzert writes:
how can I debug python/zope. I need to find out where a special user-object came from and which contents it has. I usually do this in an interactive Python session:
import Zope Root= Zope.app() # your Zope root object myObject= Root.p1.p2.p3.p4... # the path to your object myObject_base= myObject.aq_base # unwrap it # myObject_base is not a normal Python object that can be analysed as usual In order for this to work, you must have set "PYTHONPATH" such that "<zopedir>/lib/python" is searched (this usually is done automatically in "z2.py").
BEGIN:VCARD I hate your VCARD attachments! Are they really necessary?
Dieter