From 90a4c0557549f4fdaea7758546cc9b8ba6f0010e Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 17 Mar 2016 09:02:27 +0100 Subject: [PATCH] [FIX] fix #393, trying to pyeval json --- fetchmail_attach_from_folder/model/fetchmail_server.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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']] ) ),