realms-wiki/realms/modules/wiki/hooks.py
2014-10-21 16:06:27 -05:00

6 lines
140 B
Python

from flask import g, current_app
from .models import Wiki
def before_request():
g.current_wiki = Wiki(current_app.config['WIKI_PATH'])