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