diff --git a/fetchmail_attach_from_folder/model/fetchmail_server.py b/fetchmail_attach_from_folder/model/fetchmail_server.py index 0c52c1f7f..53c9c9821 100644 --- a/fetchmail_attach_from_folder/model/fetchmail_server.py +++ b/fetchmail_attach_from_folder/model/fetchmail_server.py @@ -26,7 +26,6 @@ from lxml import etree from openerp import models, fields, api, exceptions from openerp.tools.safe_eval import safe_eval from openerp.tools.translate import _ -from openerp.tools.misc import UnquoteEvalContext _logger = logging.getLogger(__name__) @@ -266,10 +265,7 @@ class fetchmail_server(models.Model): 'modifiers', simplejson.dumps( dict( - safe_eval( - field.attrib['modifiers'], - UnquoteEvalContext({}) - ), + simplejson.loads(field.attrib['modifiers']), **modifiers[field.attrib['name']] ) ),