diff MoinMoin/items/content.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 77d7c15299c9
children b97f0a329819
line wrap: on
line diff
--- a/MoinMoin/items/content.py	Mon Dec 24 17:44:07 2012 +0100
+++ b/MoinMoin/items/content.py	Thu Jan 17 17:45:41 2013 +0800
@@ -63,7 +63,7 @@
 from MoinMoin.forms import File
 from MoinMoin.constants.contenttypes import (
     GROUP_MARKUP_TEXT, GROUP_OTHER_TEXT, GROUP_IMAGE, GROUP_AUDIO, GROUP_VIDEO,
-    GROUP_DRAWING, GROUP_OTHER,
+    GROUP_DRAWING, GROUP_OTHER, CONTENTTYPE_NONEXISTENT,
     )
 from MoinMoin.constants.keys import (
     NAME, NAME_EXACT, WIKINAME, CONTENTTYPE, SIZE, TAGS, HASH_ALGORITHM
@@ -281,7 +281,7 @@
 @register
 class NonExistentContent(Content):
     """Dummy Content to use with NonExistent."""
-    contenttype = 'application/x-nonexistent'
+    contenttype = CONTENTTYPE_NONEXISTENT
     group = None
 
     def do_get(self, force_attachment=False, mimetype=None):