[Grok-dev] cataloging issues
sebastian at urbantalk.se
Fri Mar 13 16:47:45 EDT 2009
Just a thought here... The error doesn't seem to refer to dublicate
catalogs, but rather duplicate indexes within that catalog. I would
look for stuff called "description". Maybe try changing
description = index.Text()
desc = index.Text(attribute='description')
and see what happens.
13 mar 2009 kl. 18.56 skrev Souheil CHELFOUH:
> Hello !
> I'm new in the grok community and I first like to thank you all for
> the wonderful work you're doing.
> I'm currently working on a small CMS project called 'Dolmen' and i'm
> stuck on cataloging issues.
> My application looks actually like this :
> class Dolmen(grok.Application, .grok.Container):
> I defined some content types, all using a base interface :
> class IBaseSchema(INameFromTitle):
> title = TextLine(
> title = u"Title",
> required = True
> description = Text(
> title = u"Description",
> required = False
> I'm defining some indexes :
> class ContentIndexes(grok.Indexes):
> title = index.Text()
> description = index.Text()
> However, when I create a new application, I get the following error :
> GrokError: grok.Indexes in module <module 'dolmen.content.catalog'
> from '/home/trollfot/mygrok/Dolmen/src/dolmen/content/catalog.py'>
> causes creation of catalog index 'description' in catalog '', but an
> index with that name is already present.
> I checked manually in the grokker IndexesSetupSubscriber and it's
> called twice on my component, triggering the previous error.
> Any idea here, to unstuck me ? Any pointers are welcome
> I removed all the .pyc, checked manually everything, there is only one
> grok.Indexes component.
> thank you
> - Souheil 'trollfot'
> Grok-dev mailing list
> Grok-dev at zope.org
More information about the Grok-dev