From 76bd5dfb72c0eac53f82665c565e0c6ad42bfa4b Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Wed, 29 Dec 2010 13:40:25 +0200 Subject: [PATCH] tools/translate: import skipped xml types from tools.misc, after recent patch bzr revid: p_christ@hol.gr-20101229114025-p1aj5tfuf5pwxxw2 --- bin/tools/translate.py | 4 +--- 1 file changed, 1 insertion(+), 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: