|
|
@ -25,6 +25,7 @@ import simplejson |
|
|
|
from lxml import etree |
|
|
|
from openerp import models, fields, api, exceptions |
|
|
|
from openerp.tools.translate import _ |
|
|
|
from openerp.tools.safe_eval import safe_eval |
|
|
|
from openerp.tools.misc import UnquoteEvalContext |
|
|
|
_logger = logging.getLogger(__name__) |
|
|
|
|
|
|
@ -253,7 +254,7 @@ class fetchmail_server(models.Model): |
|
|
|
if field.tag == 'field' and field.get('name') in modifiers: |
|
|
|
field.set('modifiers', simplejson.dumps( |
|
|
|
dict( |
|
|
|
eval(field.attrib['modifiers'], |
|
|
|
safe_eval(field.attrib['modifiers'], |
|
|
|
UnquoteEvalContext({})), |
|
|
|
**modifiers[field.attrib['name']]))) |
|
|
|
if (field.tag == 'field' and |
|
|
|