# Path: app/helpers/session.py
# def add_sessions_to_app(app):
# def get_session():
# def is_logged():
# def login(email):
# def logout():
# def reset():
# def get_user_id():
# def get_last_visited_url():
# def set_last_visited_url():
# def login_required(meth):
#     def new(*args):
# def login_required_for_reviews(meth):
#     def new(*l):


import web
import config
import app.controllers
from app.helpers import session
    '/submit_application',                       'app.controllers.submit_application.apply',
    '/submit_reference/([0-9a-f]{32})',          'app.controllers.submit_reference.refer',
    '/affiliated/submit_application',            'app.controllers.submit_application.apply_simple',
    
    '/(|new|pending|all|admitted)',              'app.controllers.browse.list',
    '/(search|rejected|reviewed)',               'app.controllers.browse.list',
    '/applicant/(\d+)',                          'app.controllers.browse.show',
    
    '/admit',                                    'app.controllers.actions.admit',
    '/reject',                                   'app.controllers.actions.reject',
    '/undecide',                                 'app.controllers.actions.undecide',
    '/rate',                                     'app.controllers.actions.rate',
    
    '/applicant/(\d+)/comment',                  'app.controllers.actions.comment',
    '/delete_comment/(\d+)',                     'app.controllers.actions.delete_comment',
    
    '/grant/(\d+)',                              'app.controllers.actions.grant',
    
    '/account',                                  'app.controllers.account.index',
    '/account/register',                         'app.controllers.account.register',
    '/account/login',                            'app.controllers.account.login',
    '/account/logout',                           'app.controllers.account.logout',
    '/account/resend_password',                  'app.controllers.account.resend_password',
    '/account/help',                             'app.controllers.account.help',
    
    '/settings',                                 'app.controllers.settings.index',
    '/settings/change_nickname',                 'app.controllers.settings.change_nickname',
    '/settings/change_password',                 'app.controllers.settings.change_password',
    '/settings/change_email',                    'app.controllers.settings.change_email',
    

# Path: app/helpers/session.py
# def add_sessions_to_app(app):
# def get_session():
# def is_logged():
# def login(email):
# def logout():
# def reset():
# def get_user_id():
# def get_last_visited_url():
# def set_last_visited_url():
# def login_required(meth):
#     def new(*args):
# def login_required_for_reviews(meth):
#     def new(*l):


# Path: application.py
import web
import config
import app.controllers
from app.helpers import session

    '/submit_application',                       'app.controllers.submit_application.apply',
    '/submit_reference/([0-9a-f]{32})',          'app.controllers.submit_reference.refer',
    '/affiliated/submit_application',            'app.controllers.submit_application.apply_simple',
    
    '/(|new|pending|all|admitted)',              'app.controllers.browse.list',
    '/(search|rejected|reviewed)',               'app.controllers.browse.list',
    '/applicant/(\d+)',                          'app.controllers.browse.show',
    
    '/admit',                                    'app.controllers.actions.admit',
    '/reject',                                   'app.controllers.actions.reject',
    '/undecide',                                 'app.controllers.actions.undecide',
    '/rate',                                     'app.controllers.actions.rate',
    
    '/applicant/(\d+)/comment',                  'app.controllers.actions.comment',
    '/delete_comment/(\d+)',                     'app.controllers.actions.delete_comment',
    
    '/grant/(\d+)',                              'app.controllers.actions.grant',
    
    '/account',                                  'app.controllers.account.index',
    '/account/register',                         'app.controllers.account.register',
    '/account/login',                            'app.controllers.account.login',
    '/account/logout',                           'app.controllers.account.logout',
    '/account/resend_password',                  'app.controllers.account.resend_password',
    '/account/help',                             'app.controllers.account.help',
    
    '/settings',                                 'app.controllers.settings.index',
    '/settings/change_nickname',                 'app.controllers.settings.change_nickname',
    '/settings/change_password',                 'app.controllers.settings.change_password',
    '/settings/change_email',                    'app.controllers.settings.change_email',
    

    '/(?:img|js|css)/.*',                        'app.controllers.public.public',