Commit acd160ad authored by Jean-Paul Smets's avatar Jean-Paul Smets

Fixed implementation of templates

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15955 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c6e382b0
......@@ -2897,8 +2897,7 @@ class Base( CopyContainer,
# Make sure this object is not in the catalog
catalog = getToolByName(self, 'portal_catalog', None)
if catalog is not None:
#catalog.unindexObject(self)
pass
catalog.unindexObject(self, uid=self.getUid())
self.isIndexable = 0
self.isTemplate = 1
......@@ -2993,8 +2992,8 @@ class Base( CopyContainer,
by property or category.
"""
# New implementation of DocumentationHelper (ongoing work)
#from DocumentationHelper import PortalTypeInstanceDocumentationHelper
#return PortalTypeInstanceDocumentationHelper(self.getRelativeUrl()).__of__(self)
# from DocumentationHelper import PortalTypeInstanceDocumentationHelper
# return PortalTypeInstanceDocumentationHelper(self.getRelativeUrl()).__of__(self)
if item_id is None:
documented_item = self
......
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