[IMP]add attr in npybabel.py.

bzr revid: vme@tinyerp.com-20120615085027-z08zieqvr0v8br4j
This commit is contained in:
Vidhin Mehta (OpenERP) 2012-06-15 14:20:27 +05:30
parent fef0b4f52b
commit e76a800f90
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ def extract_qweb(fileobj, keywords, comment_tags, options):
not ("t-jquery" in el.attrib and "t-operation" not in el.attrib) and \
not ("t-translation" in el.attrib and el.attrib["t-translation"].strip() == "off"):
handle_text(el.text, el.sourceline)
for att in ('title', 'alt', 'label'):
for att in ('title', 'alt', 'label','placeholder'):
if att in el.attrib:
handle_text(el.attrib[att], el.sourceline)
iter_elements(el)