[Zope] Getting information about current method
Peter Bengtsson
peterbe at gmail.com
Mon Jun 20 12:36:32 EDT 2005
> >
> > Then I don't know.
> > (The application instance is none other than zope itself. )
> > I can honestly not think of a way to extract this information. I've
> > even tried setting up a simple example method and I couldn't get hold
> > of the zodb name of the external method that is called.
>
> You can go the low-level route: Using the inspect module, you can get to
> the stack frames of your callers, and then inspect the local variables
> there. There must be one that can get you the information you want.
>
We tried that but no luck.
> See the docstrings of the functions in the inspect module for details.
>
> Florent
>
> --
> Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D
> +33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
>
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
More information about the Zope
mailing list