realms-wiki/realms/modules/wiki/hooks.py
2014-11-17 11:25:26 -06:00

7 lines
141 B
Python

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