[Zope] how to get info about an object (dir/type)
Jonathan
dev101 at magma.ca
Thu Jun 30 08:06:31 EDT 2005
----- Original Message -----
From: "gabor" <gabor at nekomancer.net>
To: <zope at 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
More information about the Zope
mailing list