[Grok-dev] grok.local_utility is not registering anything in the app
Vanderson Mota dos Santos
vanderson.mota at gmail.com
Wed Feb 18 15:40:22 EST 2009
Greetings,
I'm writing an app that uses IntIds and the Relation, in order to make
object relationships.
My app code is like this:
class MyApp(grok.Application, grok.Container):
grok.local_utility(IntIds, IIntIds)
grok.local_utility(RelationCatalog, ICatalog, name='relation')
def __init__(self):
super(Aquisicao, self).__init__()
self['materials'] = Materials()
the problem is, when i try to use component.getUtility(IIntIds), a
componentLookUpError appear to me.
Am i doing something wrong? I tried to find something like to handle object
relationships, and i found the thread in this list about making object
relationships, but i want to register this intids and RelationCatalog
utilities in a more "grokish" way.
could anyone help me please?
--
Vanderson Mota dos Santos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20090218/172b694b/attachment.html
More information about the Grok-dev
mailing list