From 88f2bab7d7296cbb68650ab5cc5eec31a3d58d51 Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Mon, 12 Oct 2009 17:50:44 +0000
Subject: [PATCH] change deprecated use of lxml API

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29576 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5OOo/OOoUtils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5OOo/OOoUtils.py b/product/ERP5OOo/OOoUtils.py
index 91260c7857..118df76b8d 100644
--- a/product/ERP5OOo/OOoUtils.py
+++ b/product/ERP5OOo/OOoUtils.py
@@ -146,7 +146,7 @@ class OOoBuilder(Implicit):
     content_xml = self.extract(ooo_xml_file_id)
     output = StringIO()
     content_doc = etree.XML(content_xml)
-    root = content_doc.getroot()
+    root = content_doc.getroottree().getroot()
     #Declare zope namespaces
     NSMAP = {'tal': 'http://xml.zope.org/namespaces/tal',
              'i18n': 'http://xml.zope.org/namespaces/i18n',
-- 
2.30.9