Commit cbb36d89 authored by Yoshinori Okuji's avatar Yoshinori Okuji

p was not defined in uninstall.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3836 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 079d08c7
......@@ -423,7 +423,7 @@ class SkinTemplateItem(ObjectTemplateItem):
new_selection.append(skin_id)
ps.manage_skinLayers(skinpath = tuple(new_selection), skinname = skin_name, add_skin = 1)
# Make sure that skin data is up-to-date (see CMFCore/Skinnable.py).
p.changeSkin(None)
context.getPortalObject().changeSkin(None)
ObjectTemplateItem.uninstall(self, context, **kw)
......@@ -789,6 +789,7 @@ class ModuleTemplateItem(BaseTemplateItem):
def diff(self, max_deep=1, **kw):
return ''
def build(self, context, **kw):
BaseTemplateItem.build(self, context, **kw)
p = context.getPortalObject()
......
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