[Zope] debug question

Dieter Maurer dieter@handshake.de
Thu, 11 Jul 2002 21:34:27 +0200

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").

I hate your VCARD attachments!
Are they really necessary?