Commit 218eaa05 authored by Romain Courteaud's avatar Romain Courteaud

getTransactionalVariable's parameter is not mandatory anymore.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38370 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3390e2d6
...@@ -198,7 +198,7 @@ class Person(EncryptedPasswordMixin, XMLObject): ...@@ -198,7 +198,7 @@ class Person(EncryptedPasswordMixin, XMLObject):
parent_value.serialize() parent_value.serialize()
# Prevent to set the same reference on 2 different persons during the # Prevent to set the same reference on 2 different persons during the
# same transaction # same transaction
transactional_variable = getTransactionalVariable(None) transactional_variable = getTransactionalVariable()
if tag in transactional_variable: if tag in transactional_variable:
raise RuntimeError, 'user id %s already exist' % (value,) raise RuntimeError, 'user id %s already exist' % (value,)
else: else:
......
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