Commit 7700bba6 authored by Nicolas Delaby's avatar Nicolas Delaby

remove obsolete code

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28640 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 08d69f51
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (c) 2005 Nexedi SARL and Contributors. All Rights Reserved. # Copyright (c) 2005 Nexedi SARL and Contributors. All Rights Reserved.
...@@ -209,12 +210,7 @@ class OOoTemplate(ZopePageTemplate): ...@@ -209,12 +210,7 @@ class OOoTemplate(ZopePageTemplate):
memory_file.seek(0) memory_file.seek(0)
self.OLE_documents_zipstring = memory_file.read() self.OLE_documents_zipstring = memory_file.read()
self.content_type = builder.getMimeType() self.content_type = builder.getMimeType()
#get XSL stylesheet from portal_skins file = builder.prepareContentXml(self.ooo_xml_file_id)
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)
return ZopePageTemplate.pt_upload(self, REQUEST, file) return ZopePageTemplate.pt_upload(self, REQUEST, file)
security.declareProtected('Change Page Templates', 'pt_edit') security.declareProtected('Change Page Templates', 'pt_edit')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment