comparison 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
comparison
equal deleted inserted replaced
247:5028c04190a9 248:1a1dab306214
21 from MoinMoin.i18n import _, L_, N_ 21 from MoinMoin.i18n import _, L_, N_
22 from MoinMoin import wikiutil, user 22 from MoinMoin import wikiutil, user
23 from MoinMoin.config import USERID, ADDRESS, HOSTNAME 23 from MoinMoin.config import USERID, ADDRESS, HOSTNAME
24 from MoinMoin.util.interwiki import split_interwiki, resolve_interwiki, join_wiki, getInterwikiHome 24 from MoinMoin.util.interwiki import split_interwiki, resolve_interwiki, join_wiki, getInterwikiHome
25 from MoinMoin.util.crypto import cache_key 25 from MoinMoin.util.crypto import cache_key
26 from MoinMoin.util.forms import make_generator
26 27
27 28
28 def get_current_theme(): 29 def get_current_theme():
29 # this might be called at a time when flaskg.user is not setup yet: 30 # this might be called at a time when flaskg.user is not setup yet:
30 u = getattr(flaskg, 'user', None) 31 u = getattr(flaskg, 'user', None)
390 'storage': flaskg.storage, 391 'storage': flaskg.storage,
391 'clock': flaskg.clock, 392 'clock': flaskg.clock,
392 'cfg': app.cfg, 393 'cfg': app.cfg,
393 'item_name': 'handlers need to give it', 394 'item_name': 'handlers need to give it',
394 'get_editor_info': lambda rev: get_editor_info(rev), 395 'get_editor_info': lambda rev: get_editor_info(rev),
396 'gen': make_generator(),
395 }) 397 })
396 398