Re: how to explore objects attributes and methods from a script or template
Fernando Martins <[email protected]> Sun, 06 Nov 2011 15:27:20 +0100
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
On 11/06/2011 02:45 PM, fg wrote: > hi all, > > how do i get the attributes and methods list of an object? > from a python script or a page template, dir(object) does not work? > In Python scripts you can't. It's a protected function. You can patch the code yourself to allow for it, but I don't remember where right now. Fernando