From 97e7ccb4605a985466d7a30c8f2ddfce58011f9f Mon Sep 17 00:00:00 2001 From: smerten Date: Wed, 29 Oct 2008 22:04:01 +0000 Subject: [PATCH] Debugging: Moved `MIME_TYPE` into class. git-svn-id: https://docutils.svn.sourceforge.net/svnroot/docutils/trunk@5706 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- sandbox/OpenDocument/odtwriter/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sandbox/OpenDocument/odtwriter/__init__.py b/sandbox/OpenDocument/odtwriter/__init__.py index 4a89ee3ec..fff65c0d6 100644 --- a/sandbox/OpenDocument/odtwriter/__init__.py +++ b/sandbox/OpenDocument/odtwriter/__init__.py @@ -265,8 +265,6 @@ META_NAMESPACE_DICT = METNSD = { 'xlink': 'http://www.w3.org/1999/xlink', } - - # # Attribute dictionaries for use with ElementTree (not lxml), which # does not support use of nsmap parameter on Element() and SubElement(). @@ -505,6 +503,7 @@ class ListLevel(object): class Writer(writers.Writer): + MIME_TYPE = 'application/vnd.oasis.opendocument.text' EXTENSION = '.odt' supported = ('html', 'html4css1', 'xhtml') @@ -633,7 +632,6 @@ class Writer(writers.Writer): def __init__(self): writers.Writer.__init__(self) - self.MIME_TYPE = 'application/vnd.oasis.opendocument.text' self.translator_class = ODFTranslator def translate(self): -- 2.11.4.GIT