# Path: app.py
# def inject_static():
#     def static(filename, **kwargs):
# def install_security_headers(resp):
# 
# Path: libforget/auth.py
# def get_viewer_session():
#     from model import Session
#     sid = request.cookies.get('forget_sid', None)
#     if sid:
#         return Session.query.get(sid)
# 
# def set_session_cookie(session, response, secure=True):
#     response.set_cookie(
#         'forget_sid', session.id,
#         max_age=60*60*48,
#         httponly=True,
#         secure=secure)


from app import app, db, sentry
from flask import g, render_template, make_response, redirect, request
from libforget.auth import get_viewer_session, set_session_cookie
import version
import libforget.version


@app.before_request
def load_viewer():
    g.viewer = get_viewer_session()

# Path: app.py
# def inject_static():
#     def static(filename, **kwargs):
# def install_security_headers(resp):
# 
# Path: libforget/auth.py
# def get_viewer_session():
#     from model import Session
#     sid = request.cookies.get('forget_sid', None)
#     if sid:
#         return Session.query.get(sid)
# 
# def set_session_cookie(session, response, secure=True):
#     response.set_cookie(
#         'forget_sid', session.id,
#         max_age=60*60*48,
#         httponly=True,
#         secure=secure)


# Path: routes/misc.py
from app import app, db, sentry
from flask import g, render_template, make_response, redirect, request
from libforget.auth import get_viewer_session, set_session_cookie
import version
import libforget.version



@app.before_request
def load_viewer():
    g.viewer = get_viewer_session()

    if g.viewer and sentry: