Commit 0bda79bf authored by Aurel's avatar Aurel

Fix an exception name and a typo error


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4155 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fe41e41c
......@@ -1168,7 +1168,7 @@ class ActionTemplateItem(ObjectTemplateItem):
self._objects[key].wl_clearLocks()
break
else:
raise notFound, 'Action %r not found' %(id,)
raise NotFound, 'Action %r not found' %(id,)
def install(self, context, **kw):
if (getattr(self, 'template_format_version', 0)) == 1:
......@@ -1256,7 +1256,7 @@ class SitePropertyTemplateItem(BaseTemplateItem):
i = item.childNodes[0].data
value.append(str(i))
else:
value = str(chain.getElementsByTagName('value')[0].childNodes[0].data)
value = str(prop.getElementsByTagName('value')[0].childNodes[0].data)
self._objects[str(id)] = (str(type), value)
def install(self, context, **kw):
......
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