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

Peter Bengtsson peterbe at gmail.com
Thu Jun 30 08:36:01 EDT 2005


> 
> 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__ from your zope.
Bare in mind that there's a security reason why these aren't available
in zope but if it's only you using the tools, it's safe.

> gabor
> _______________________________________________
> Zope maillist  -  Zope at 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 )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com


More information about the Zope mailing list