Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Dieter Maurer
Peter Bengtsson wrote at 2005-6-30 13:36 +0100: > ... >External methods. You might even want to have a general debugging >script lying around that you can use to exploit dir() and type() and >__class__.__name__ from your zope. >Bare in mind that there's a security reason why these aren't available

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Dieter Maurer
gabor wrote at 2005-6-30 13:48 +0200: >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 sim

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Andy McKay
gabor wrote: > hi, > > 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

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Nikko Wolf
See: http://epydoc.sourceforge.net/ (which I have not yet used). Andreas Jung wrote: --On 30. Juni 2005 13:48:19 +0200 gabor <[EMAIL PROTECTED]> wrote: 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 c

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Peter Bengtsson
> > usually i would simply call dir() or type() on the result object, > but those are forbidden in zope. > > how do you usually solve this? > External methods. You might even want to have a general debugging script lying around that you can use to exploit dir() and type() and __class__.__name__

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Andreas Jung
--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: hi, while working with zope, i many times have the following problem: i find a method that i can use, and the documentation (for exam

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Jonathan
- Original Message - From: "gabor" <[EMAIL PROTECTED]> To: 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 do

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread gabor
Andreas Jung wrote: --On 30. Juni 2005 13:48:19 +0200 gabor <[EMAIL PROTECTED]> wrote: hi, 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

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Andreas Jung
--On 30. Juni 2005 13:48:19 +0200 gabor <[EMAIL PROTECTED]> wrote: hi, 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

[Zope] how to get info about an object (dir/type)

2005-06-30 Thread gabor
hi, 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 ob