Commit e295e205 authored by Sebastien Robin's avatar Sebastien Robin

put back previous version


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6082 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e2b02f87
...@@ -755,8 +755,7 @@ class ERP5Generator(PortalGenerator): ...@@ -755,8 +755,7 @@ class ERP5Generator(PortalGenerator):
LOG('setupTools, create',0,kw) LOG('setupTools, create',0,kw)
id = str(id) id = str(id)
portal = self.klass(id=id) portal = self.klass(id=id)
# We should make sure that we do not setup uids before if reindex==0:
# calling catalog_clear
setattr(portal,'isIndexable',0) setattr(portal,'isIndexable',0)
parent._setObject(id, portal) parent._setObject(id, portal)
# Return the fully wrapped object. # Return the fully wrapped object.
...@@ -964,13 +963,13 @@ class ERP5Generator(PortalGenerator): ...@@ -964,13 +963,13 @@ class ERP5Generator(PortalGenerator):
def setupIndex(self, p, **kw): def setupIndex(self, p, **kw):
# Make sure all tools and folders have been indexed # Make sure all tools and folders have been indexed
setattr(p,'isIndexable',1)
if kw.has_key('reindex') and kw['reindex']==0: if kw.has_key('reindex') and kw['reindex']==0:
return return
skins_tool = getToolByName(p, 'portal_skins', None) skins_tool = getToolByName(p, 'portal_skins', None)
if skins_tool is None: if skins_tool is None:
return return
portal_catalog = p.portal_catalog portal_catalog = p.portal_catalog
portal_catalog.manage_catalogClear()
skins_tool["erp5_core"].ERP5Site_reindexAll() skins_tool["erp5_core"].ERP5Site_reindexAll()
def setupUserFolder(self, p): def setupUserFolder(self, p):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment