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, ...@@ -2897,8 +2897,7 @@ class Base( CopyContainer,
# Make sure this object is not in the catalog # Make sure this object is not in the catalog
catalog = getToolByName(self, 'portal_catalog', None) catalog = getToolByName(self, 'portal_catalog', None)
if catalog is not None: if catalog is not None:
#catalog.unindexObject(self) catalog.unindexObject(self, uid=self.getUid())
pass
self.isIndexable = 0 self.isIndexable = 0
self.isTemplate = 1 self.isTemplate = 1
...@@ -2993,8 +2992,8 @@ class Base( CopyContainer, ...@@ -2993,8 +2992,8 @@ class Base( CopyContainer,
by property or category. by property or category.
""" """
# New implementation of DocumentationHelper (ongoing work) # New implementation of DocumentationHelper (ongoing work)
#from DocumentationHelper import PortalTypeInstanceDocumentationHelper # from DocumentationHelper import PortalTypeInstanceDocumentationHelper
#return PortalTypeInstanceDocumentationHelper(self.getRelativeUrl()).__of__(self) # return PortalTypeInstanceDocumentationHelper(self.getRelativeUrl()).__of__(self)
if item_id is None: if item_id is None:
documented_item = self 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