diff MoinMoin/themes/__init__.py @ 1801:f6afb9aeb861

Replace CONTENTTYPE_GROUPS with information collected in content_registry.
author Cheer Xiao <xiaqqaix@gmail.com>
date Sat, 29 Sep 2012 23:55:59 +0800
parents 54062fc0ca97
children ff503e7ea7a0 57fa668139cb 063c879ef79b
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Sat Sep 29 23:55:58 2012 +0800
+++ b/MoinMoin/themes/__init__.py	Sat Sep 29 23:55:59 2012 +0800
@@ -29,6 +29,7 @@
 from MoinMoin.util.crypto import cache_key
 from MoinMoin.util.forms import make_generator
 from MoinMoin.util.clock import timed
+from MoinMoin.util.mime import Type
 
 
 def get_current_theme():
@@ -414,6 +415,7 @@
                             # _, gettext, ngettext
                             'isinstance': isinstance,
                             'list': list,
+                            'Type': Type,
                             # please note that flask-themes installs:
                             # theme, theme_static
                             'theme_supp': ThemeSupport(app.cfg),