Hi there,<br><br>I`m not sure, but maybe you could take a look at the GlobalUtility grokker (1) to see the priority and set a lower priority in your custom grokker<br><br>(1) <a href="http://svn.zope.org/grokcore.component/trunk/src/grokcore/component/meta.py">http://svn.zope.org/grokcore.component/trunk/src/grokcore/component/meta.py</a><br>
<br>Best regards<br><br><div class="gmail_quote">On Wed, Dec 31, 2008 at 12:26 PM, Paul Wilson <span dir="ltr">&lt;<a href="mailto:paulalexwilson@gmail.com">paulalexwilson@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Happy New Year!<br>
<br>
I&#39;ve got a non-persistent container (i.e. doesn&#39;t subclass<br>
grok.Container) that I&#39;m registering as a GlobalUtility. It&#39;s purpose<br>
is to contain references to classes (implemented as multi-adapters)<br>
that are plugged into the application via grokking. It will be used to<br>
acquire a tree-like representation of plugged in classes (hence the<br>
containment) within my web application. So I have a custom grokker set<br>
up for pluggin class registration, and a directive to state where in<br>
this hierarchy the class should be placed. However, when these<br>
extensions classes are grokked, and I try to find my global container,<br>
it seems that my GlobalUtility is not present: component.getUtility()<br>
raises a ComponentLookupError for the interface. My conclusion is that<br>
the grok.GlobalUtility grokker hasn&#39;t run yet.<br>
<br>
How can I get a grok.GlobalUtility to be registered prior to my custom<br>
defined grokkers? Or is my solution to my problem incorrect?<br>
<br>
Thanks,<br>
Paul<br>
<br>
p.s. I have my customer grokker&#39;s priority set to -1 too, but this doesn&#39;t help<br>
_______________________________________________<br>
Grok-dev mailing list<br>
<a href="mailto:Grok-dev@zope.org">Grok-dev@zope.org</a><br>
<a href="http://mail.zope.org/mailman/listinfo/grok-dev" target="_blank">http://mail.zope.org/mailman/listinfo/grok-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Santiago Videla<br><a href="http://www.revolucionesweb.com.ar">www.revolucionesweb.com.ar</a><br><a href="http://www.linkedin.com/in/svidela">http://www.linkedin.com/in/svidela</a><br>
<br>Sigue la mata dando de que hablar siempre abajo y a la izquierda donde el pensamiento que se hace corazón resplandece con la palabra sencilla y humilde que l@s tod@s somos.<br>