[FIX] don't try to set attributes on comments, it makes no sense

bzr revid: tde@openerp.com-20130923143349-y922fxtbkotsjzpf
This commit is contained in:
Thibault Delavallée 2013-09-23 16:33:49 +02:00
parent 438c6683d7
commit e07531f451
1 changed files with 2 additions and 1 deletions

View File

@ -254,7 +254,8 @@ class view(osv.osv):
return None
def inherit_branding(self, specs_tree, view_id):
for node in specs_tree:
print map(etree.tostring, specs_tree)
for node in specs_tree.iterchildren(tag=etree.Element):
xpath = node.getroottree().getpath(node)
if node.tag == 'data' or node.tag == 'xpath':
self.inherit_branding(node, view_id)