Commit d924917e authored by Vincent Pelletier's avatar Vincent Pelletier

Remove deprecated code:

- It has  been deprecated for more than 2 years with a warning
- It never worked reliably (because volatiles are unreliable by design)
- An alternative exists since the begining of deprecation period


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28921 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f87fb709
......@@ -113,17 +113,6 @@ class ActiveObject(ExtensionClass.Base):
except KeyError:
pass
# Deprecated: This volatile variable '_v_activate_kw' can be used to pass parameters
# automatically to activate.
if getattr(self, '_v_activate_kw', None) is not None:
import warnings
warnings.warn('_v_activate_kw is deprecated;\n'
' use setDefaultActivateParameters instead.',
DeprecationWarning)
for k, v in self._v_activate_kw.iteritems():
if k not in kw:
kw[k] = v
if kw.get('group_id', '') is None:
raise ValueError, "Cannot defined a group_id with value None"
elif kw.get('group_method_id') is None and kw.get('group_id') is not None:
......
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