[Grok-dev] cataloging issues

Souheil CHELFOUH trollfot at gmail.com
Fri Mar 13 22:17:14 EDT 2009


Yes, it's not a problem of catalog, the problems are the indexes.
What you propose doesn't change anything. The problem is that the
component grok.Indexes is grokked twice.
Am i the only one to get the case ?

2009/3/13 Sebastian Ware <sebastian at urbantalk.se>:
> 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:
Wha
>> 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