--On 30. Juni 2005 14:04:14 +0200 gabor <[EMAIL PROTECTED]> wrote:

Andreas Jung wrote:

--On 30. Juni 2005 13:48:19 +0200 gabor <[EMAIL PROTECTED]> wrote:


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?

lib/python/AccessControl/User.py is your friend.

thanks for your help,

but .. it is not about this specific issue (about the current user)..

generally.. if i have a reference to an object.
how do i find out what his methods are?

By determining its class or meta_type and then by checking the related documentation, source code of the class or its base classes? Of course type() does not work in RestrictedPython. Bascially you should know the objects you're dealing with...otherwise this sounds like a problem with your application to me :-) Otherwise use type() from within unrestricted code.


Attachment: pgpyFqkQef3xE.pgp
Description: PGP signature

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

Reply via email to