[IMP] openerp-ified qweb

bzr revid: xmo@openerp.com-20131004134637-l2mpxsjwgu4pff2z
This commit is contained in:
Xavier Morel
2013-10-04 15:46:37 +02:00
parent 6ed1edf538
commit e826d0e7f8
+2 -5
View File
@@ -3,13 +3,10 @@ from collections import namedtuple
from functools import partial
from xml.dom.minidom import getDOMImplementation
from lxml import etree, html
from lxml import html
from openerp.tests import common
from openerp.tools import qweb
import unittest2
renderer = qweb.QWebXml()
impl = getDOMImplementation()
document = impl.createDocument(None, None, None)
@@ -39,7 +36,7 @@ class TestConvertBack(common.TransactionCase):
field_value = 'record.%s' % field
e.setAttribute('t-field', field_value)
rendered = renderer.render_tag_field(
rendered = self.registry('ir.templating.qweb').render_tag_field(
e, {'field': field_value}, '', {
'record': record,
'request': Request(self.cr, self.uid, RegistryProxy( self.registry)),