[Grok-dev] cataloging issues
Sebastian Ware
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()
to
desc = index.Text(attribute='description')
and see what happens.
Mvh Sebastian
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):
>
> grok.local_utility(PluggableAuthentication,
> IAuthentication,
> setup=setup_pau)
>
> 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):
> grok.name('contents')
> grok.site(Dolmen)
> grok.context(IBaseSchema)
>
> 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
> http://mail.zope.org/mailman/listinfo/grok-dev
More information about the Grok-dev
mailing list