Commit e9039a4e authored by Julien Muchembled's avatar Julien Muchembled

Stop exporting '_arg' and 'template' attributes of Z SQL Methods

This is a follow-up of 38356, now that most erp5_* Business Templates can only
be installed on instances using new portal types as classes.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41517 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 62261f21
No related merge requests found
......@@ -565,8 +565,8 @@ class BaseTemplateItem(Implicit, Persistent):
for attr in 'errors', 'warnings', '_proxy_roles':
if not obj.__dict__.get(attr, 1):
delattr(obj, attr)
#elif classname == 'SQL' and klass.__module__== 'Products.ZSQLMethods':
# attr_set.update(('_arg', 'template'))
elif classname == 'SQL' and klass.__module__== 'Products.ZSQLMethods.SQL':
attr_set.update(('_arg', 'template'))
elif interfaces.IIdGenerator.providedBy(obj):
attr_set.update(('last_max_id_dict', 'last_id_dict'))
......
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