[Zope3-Users] Re: how to get access to configuration context in
Python?
Philipp von Weitershausen
philipp at weitershausen.de
Tue Mar 20 21:21:53 EDT 2007
Shailesh Kumar wrote:
> Hi,
>
> I ran into this small problem.
>
> I had added a
> <meta:provides feature="afeature" />
>
> This works fine for controlling ZCML directives.
... and that's what it was meant for.
> Now at some places in my Python code, I would like to query whether
> afeature is available or not.
> What is the way to access this?
There isn't, unless that code is invoked by configuration directives.
> But couldn't figure out if this information can be accessed later on.
> Is it not possible to get this information later?
Maybe. But it really wasn't meant for that.
--
http://worldcookery.com -- Professional Zope documentation and training
More information about the Zope3-users
mailing list