----- Original Message ----- From: "gabor" <[EMAIL PROTECTED]>
To: <zope@zope.org>
Sent: Thursday, June 30, 2005 7:48 AM
Subject: [Zope] how to get info about an object (dir/type)

while working with zope, i many times have the following problem:

i find a method that i can use, and the documentation (for example) says:
"returns the current user".

ok, but what kind of object is it?
what methods does it have?

usually i would simply call dir() or type() on the result object,
but those are forbidden in zope.

You can create a small utility external method to call dir() and type() (very useful!)


Jonathan

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to