realms-wiki/realms/modules/wiki/hooks.py

6 lines
140 B
Python
Raw Normal View History

2014-10-22 00:06:27 +03:00
from flask import g, current_app
from .models import Wiki
def before_request():
g.current_wiki = Wiki(current_app.config['WIKI_PATH'])