Hi,
I'm having problems with this error
2011-12-23 12:49:32 ERROR Products.ZCatalog A different document with value
'f5c72602-989d-4939-a9a2-12ee81bab10f' already exists in the index.'
I thought it was related to dexterity, since there was a bug report in Plone
about this which mentioned something about ids are created in dexterity.
If I ignore this error, I get crashes later on in the folder_contents view, so
that's not an option.
I switched to archetypes, but I'm getting the same error. The error occurs when
Below I'm pasting the code for my function that generates the warning (I call
this function when my template is rendered, because if I use the
IObjectAddedEvent, the function gets called 5 times).
Any ideas where this error comes from?
Thanks!
Maarten
def createElMolinoSubFolders(self):
"""
Helper that finishes the construction by creating several member
variables (this code does not work when called from the constructor).
"""
self.invokeFactory(
'Folder',
'admin',
title=_(u"Admin")
)
self.adminFolder = self['admin']
self.adminFolder.reindexObject()
self.adminFolder.invokeFactory(
'ShowsFolder',
'shows',
title=_(u"Shows")
)
self.shows = self.adminFolder['shows']
self.adminFolder.invokeFactory(
'Folder',
'artists',
title=_(u"Artists")
)
artistsFolder = self.adminFolder['artists']
artistsFolder.reindexObject()
artistsFolder.invokeFactory(
'ArtistsFolder',
'current_artists',
title=_(u"Current Artists")
)
self.currentArtists = artistsFolder['current_artists']
self.currentArtists.reindexObject()
artistsFolder.invokeFactory(
'ArtistsFolder',
'ens_han_visitat',
title=_(u"Ens han visitat")
)
self.currentArtistsEnsHanVisitat = artistsFolder['ens_han_visitat']
self.currentArtistsEnsHanVisitat.reindexObject()
artistsFolder.invokeFactory(
'ArtistsFolder',
'past_artists',
title=_(u"Past Artists")
)
self.pastArtists = artistsFolder['past_artists']
self.pastArtists.reindexObject()
self.reindexObject()
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers