diff MoinMoin/converter/docbook_out.py @ 1910:78b7a1136984

use constants in MoinMoin.constans.{item,content}types more
author Cheer Xiao <xiaqqaix@gmail.com>
date Thu, 17 Jan 2013 17:45:41 +0800
parents 4ac437141bbe
children bb2f526d961c
line wrap: on
line diff
--- a/MoinMoin/converter/docbook_out.py	Mon Dec 24 17:44:07 2012 +0100
+++ b/MoinMoin/converter/docbook_out.py	Thu Jan 17 17:45:41 2013 +0800
@@ -17,6 +17,7 @@
 logging = log.getLogger(__name__)
 
 from MoinMoin.util.tree import html, moin_page, xlink, docbook, xml
+from MoinMoin.constants.contenttypes import CONTENTTYPE_NONEXISTENT
 
 
 class Converter(object):
@@ -353,7 +354,7 @@
         """
         href = element.get(xlink.href, None)
         attrib = {}
-        mimetype = Type(_type=element.get(moin_page.type_, 'application/x-nonexistent'))
+        mimetype = Type(_type=element.get(moin_page.type_, CONTENTTYPE_NONEXISTENT))
         if href:
             attrib[docbook.fileref] = href
             if Type('image/').issupertype(mimetype):