[Zope3-Users] Re: how to get access to configuration context in Python?

Shailesh Kumar shaileshk at gmail.com
Wed Mar 21 02:21:21 EDT 2007


Thanks Phillip,

It seemed to me that such is the case. Thanks for confirming. I will get
this information in some configuration directive code
and then keep in some utility. I guess that would serve my purpose.

With regards,
-Shailesh


On 3/21/07, Philipp von Weitershausen <philipp at weitershausen.de> wrote:
>
>
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20070321/6d018cd6/attachment.htm


More information about the Zope3-users mailing list