diff MoinMoin/themes/__init__.py @ 248:1a1dab306214

move the flatland form html generator to the global environment
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 02 Jun 2011 18:14:48 +0200
parents 661a57c747bd
children 8fa4a76d71ff a716e61ae9c7
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Tue May 31 14:31:27 2011 +0200
+++ b/MoinMoin/themes/__init__.py	Thu Jun 02 18:14:48 2011 +0200
@@ -23,6 +23,7 @@
 from MoinMoin.config import USERID, ADDRESS, HOSTNAME
 from MoinMoin.util.interwiki import split_interwiki, resolve_interwiki, join_wiki, getInterwikiHome
 from MoinMoin.util.crypto import cache_key
+from MoinMoin.util.forms import make_generator
 
 
 def get_current_theme():
@@ -392,5 +393,6 @@
                             'cfg': app.cfg,
                             'item_name': 'handlers need to give it',
                             'get_editor_info': lambda rev: get_editor_info(rev),
+                            'gen': make_generator(),
                             })