]>
Commit | Line | Data |
---|---|---|
a6dc0bad MT |
1 | #!/usr/bin/python |
2 | ||
3 | import tornado.database | |
4 | ||
5 | import accounts | |
6 | import planet | |
7 | ||
8 | MYSQL_SERVER = "mysql-master.ipfire.org" | |
9 | MYSQL_DB = "webapp" | |
10 | MYSQL_USER = "webapp" | |
11 | ||
12 | class Backend(object): | |
13 | def __init__(self): | |
14 | self.db = tornado.database.Connection(MYSQL_SERVER, MYSQL_DB, user=MYSQL_USER) | |
15 | ||
16 | self.accounts = accounts.Accounts(self) | |
17 | self.planet = planet.Planet(self) |