projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59801af
)
[IMP] npybabel.py: comment w/ rationale for not using iterparse() in qweb extraction
author
Olivier Dony
<odo@openerp.com>
Mon, 6 Feb 2012 15:32:17 +0000
(16:32 +0100)
committer
Olivier Dony
<odo@openerp.com>
Mon, 6 Feb 2012 15:32:17 +0000
(16:32 +0100)
bzr revid: odo@openerp.com-
20120206153217
-27ns8rl6q0198vqk
npybabel.py
patch
|
blob
|
history
diff --git
a/npybabel.py
b/npybabel.py
index
b2888cd
..
24a97be
100755
(executable)
--- a/
npybabel.py
+++ b/
npybabel.py
@@
-66,6
+66,8
@@
def extract_qweb(fileobj, keywords, comment_tags, options):
if len(text) > 1: # Avoid mono-char tokens like ':' ',' etc.
result.append((lineno, None, text, [TRANSLATION_FLAG_COMMENT]))
+ # not using elementTree.iterparse because we need to skip sub-trees in case
+ # the ancestor element had a reason to be skipped
def iter_elements(current_element):
for el in current_element:
if "t-js" not in el.attrib and \