From 7700bba6bb9e7a34cf35cf6a2e40bff83c3d9035 Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Wed, 26 Aug 2009 13:27:31 +0000
Subject: [PATCH] remove obsolete code

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28640 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5OOo/OOoTemplate.py | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/product/ERP5OOo/OOoTemplate.py b/product/ERP5OOo/OOoTemplate.py
index ffe834d053..abf7662f00 100644
--- a/product/ERP5OOo/OOoTemplate.py
+++ b/product/ERP5OOo/OOoTemplate.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 ##############################################################################
 #
 # Copyright (c) 2005 Nexedi SARL and Contributors. All Rights Reserved.
@@ -209,12 +210,7 @@ class OOoTemplate(ZopePageTemplate):
         memory_file.seek(0)
         self.OLE_documents_zipstring = memory_file.read()
       self.content_type = builder.getMimeType()
-      #get XSL stylesheet from portal_skins
-      xsl_dtml = getattr(self, 'ERP5OOoTemplate_ooo2zpt', None)
-      xsl_content = None
-      if xsl_dtml is not None:
-        xsl_content = xsl_dtml()
-      file = builder.prepareContentXml(self.ooo_xml_file_id, xsl_content)
+      file = builder.prepareContentXml(self.ooo_xml_file_id)
     return ZopePageTemplate.pt_upload(self, REQUEST, file)
 
   security.declareProtected('Change Page Templates', 'pt_edit')
-- 
2.30.9