[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope3-users
Subject:    [Zope3-Users] Re: how to get access to configuration context in
From:       "Shailesh Kumar" <shaileshk () gmail ! com>
Date:       2007-03-21 6:33:21
Message-ID: 92e4c3710703202321t2cc362e6q73ff9bfdb81393dd () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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
>
>

[Attachment #5 (text/html)]

<div>Thanks Phillip, </div>
<div>&nbsp;</div>
<div>It seemed to me that such is the case. Thanks for confirming. I will get this \
information in some configuration directive code</div> <div>and then keep in some \
utility. I guess that would serve my purpose. <br>&nbsp;</div> <div>With \
regards,</div> <div>-Shailesh</div>
<div><br>&nbsp;</div>
<div><span class="gmail_quote">On 3/21/07, <b class="gmail_sendername">Philipp von \
Weitershausen</b> &lt;<a \
href="mailto:philipp@weitershausen.de">philipp@weitershausen.de</a>&gt; wrote:</span> \
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; \
BORDER-LEFT: #ccc 1px solid"><br><br>Shailesh Kumar wrote:<br>&gt; \
Hi,<br>&gt;<br>&gt; I ran into this small problem.<br>&gt;<br>&gt; I had added a \
<br>&gt; &lt;meta:provides feature=&quot;afeature&quot; /&gt;<br>&gt;<br>&gt; This \
works fine for controlling ZCML directives.<br><br>... and that&#39;s what it was \
meant for.<br><br>&gt; Now at some places in my Python code, I would like to query \
whether <br>&gt; afeature is available or not.<br>&gt; What is the way to access \
this?<br><br>There isn&#39;t, unless that code is invoked by configuration \
directives.<br><br>&gt; But couldn&#39;t figure out if this information can be \
accessed later on. <br>&gt; Is it not possible to get this information \
later?<br><br>Maybe. But it really wasn&#39;t meant for that.<br><br><br>--<br><a \
href="http://worldcookery.com">http://worldcookery.com</a> -- Professional Zope \
documentation and training <br><br></blockquote></div><br>



_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic