Browse Source

[FIX] fix #393, trying to pyeval json

pull/394/head
Holger Brunn 9 years ago
parent
commit
90a4c05575
  1. 6
      fetchmail_attach_from_folder/model/fetchmail_server.py

6
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']]
)
),

Loading…
Cancel
Save