-
Committer:
Olivier Dony
-
Date:
2011-06-17 17:02:15 UTC
-
Revision ID:
odo@openerp.com-20110617170215-u6gb7b5q684rmo51
[ADD] tools.misc: UnquoteEvalContext, for funky domain/context eval
UnquoteEvalContext gives you an easy way to work with
domains/context that are passed as strings but need to
be altered, while keeping the unknown symbols/names
unmodified when converted back to string.
Looks weird but is sometimes needed, because much of
the context/domain only make sense on client-side
(one of the reasons they are passed as strings in the
first place). Look at the docstring for an example.