Comment 12 for bug 551664

Revision history for this message
Christophe CHAUVET (christophe-chauvet) wrote :

I have made a test in a python console

>>> domain = "[('section_id', '=', section_id)]"
>>>
>>> domain = eval(domain)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 1, in <module>
NameError: name 'section_id' is not defined
>>> domain
"[('section_id', '=', section_id)]"

The patch as Jay propose works, the domain variable doesn't alter after evaluate and keep teh compatibility with the old functionnality.

Regards,