summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-12-29 13:40:25 +0200
committerP. Christeas <p_christ@hol.gr>2010-12-29 13:40:25 +0200
commit76bd5dfb72c0eac53f82665c565e0c6ad42bfa4b (patch)
tree00b4ef433e2307238ba547d7c63cd8a291a187df /bin
parentbcb7335027e447f2fde441ed8e857e7fa9760461 (diff)
tools/translate: import skipped xml types from tools.misc, after recent patch
bzr revid: p_christ@hol.gr-20101229114025-p1aj5tfuf5pwxxw2
Diffstat (limited to 'bin')
-rw-r--r--bin/tools/translate.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/tools/translate.py b/bin/tools/translate.py
index 6b7a0600956..7db52d9c870 100644
--- a/bin/tools/translate.py
+++ b/bin/tools/translate.py
@@ -40,6 +40,7 @@ from lxml import etree
import tools
import netsvc
from tools.misc import UpdateableStr
+from tools.misc import SKIPPED_ELEMENT_TYPES
_LOCALE2WIN32 = {
'af_ZA': 'Afrikaans_South Africa',
@@ -468,9 +469,6 @@ def trans_export(lang, modules, buffer, format, dbname=None):
_process(format, modules, trans, buffer, lang, newlang)
del trans
-# We'd better not import orm here, so copy this from osv.orm:
-SKIPPED_ELEMENT_TYPES = (etree._Comment, etree._ProcessingInstruction, etree.CommentBase, etree.PIBase)
-
def trans_parse_xsl(de):
res = []
for n in de: