Commit 2dfe75ca authored by Nicolas Dumazet's avatar Nicolas Dumazet

deleting an attribute is better than setting it to None: it's less clutter in XML


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38599 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 682e0188
......@@ -613,10 +613,10 @@ class BaseTemplateItem(Implicit, Persistent):
else:
# save result of automatic compilation
obj._p_changed = 1
elif interfaces.IIdGenerator.providedBy(obj):
elif interfaces.IIdGenerator.providedBy(obj):
for dict_name in ('last_max_id_dict', 'last_id_dict'):
if getattr(obj, dict_name, None) is not None:
setattr(obj, dict_name, None)
delattr(obj, dict_name)
return obj
def getTemplateTypeName(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