forked from neko1990/icmst2015-visit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.py
44 lines (32 loc) · 1.81 KB
/
application.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import web
import config
import app.controllers
from app.helpers import session
from app.models import articles
urls = (
'/', 'app.controllers.index.Index',
'/CallForPaper', 'app.controllers.index.CallForPaper',
'/Article', 'app.controllers.index.Article',
'/SignUp', 'app.controllers.account.SignUp',
'/Login', 'app.controllers.account.Login',
'/Logout', 'app.controllers.account.Logout',
'/Profile', 'app.controllers.account.Profile',
#'/ResendPassword', 'app.controllers.account.ResendPassword',
'/ResetPassword', 'app.controllers.account.ResetPassword',
'/Application', 'app.controllers.attendant.Application',
'/SendApplication', 'app.controllers.attendant.SendApplication',
'/ApplicationRoute', 'app.controllers.attendant.ApplicationRoute',
'/UserManage', 'app.controllers.admin.UserManage',
'/ResetUserPassword', 'app.controllers.admin.ResetUserPassword',
'/AddArticle', 'app.controllers.articlemanage.AddArticle',
'/DelArticle', 'app.controllers.articlemanage.DelArticle',
'/AlterArticle', 'app.controllers.articlemanage.AlterArticle',
'/UserDetail', 'app.controllers.detail.UserDetail',
'/RegReport', 'app.controllers.report.RegReport',
)
app = web.application(urls,globals())
session.add_sessions_to_app(app)
web.config._title_list = articles.gen_title_list()
application = app.wsgifunc()
if __name__ == "__main__":
app.run()