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

10 lines
182 B
Python

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