Commit 93620221 authored by Sebastien Robin's avatar Sebastien Robin

sorry, I have introduced one bug in my previous change


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2032 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8277dc6e
...@@ -74,13 +74,13 @@ class ObjectTemplateItem(BaseTemplateItem): ...@@ -74,13 +74,13 @@ class ObjectTemplateItem(BaseTemplateItem):
BaseTemplateItem.__init__(self, id_list, tool_id=tool_id, **kw) BaseTemplateItem.__init__(self, id_list, tool_id=tool_id, **kw)
if tool_id is not None: if tool_id is not None:
id_list = self._archive.keys() id_list = self._archive.keys()
self._archive.clear()
for id in id_list: for id in id_list:
self._archive["%s/%s" % (tool_id, id)] = None self._archive["%s/%s" % (tool_id, id)] = None
def build(self, context, **kw): def build(self, context, **kw):
BaseTemplateItem.build(self, context, **kw) BaseTemplateItem.build(self, context, **kw)
p = context.getPortalObject() p = context.getPortalObject()
tool_id = self.tool_id
for relative_url in self._archive.keys(): for relative_url in self._archive.keys():
object = p.unrestrictedTraverse(relative_url) object = p.unrestrictedTraverse(relative_url)
#if not object.cb_isCopyable(): #if not object.cb_isCopyable():
......
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