tools/translate: import skipped xml types from tools.misc, after recent patch

bzr revid: p_christ@hol.gr-20101229114025-p1aj5tfuf5pwxxw2
This commit is contained in:
P. Christeas 2010-12-29 13:40:25 +02:00
parent bcb7335027
commit 76bd5dfb72
1 changed files with 1 additions and 3 deletions

View File

@ -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: