]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - www/webapp/datastore/connections.py
Some very big changes I cannot break down to distinct commits.
[people/shoehn/ipfire.org.git] / www / webapp / datastore / connections.py
1 #!/usr/bin/python
2
3 import tornado.database
4
5 MYSQL_SERVER = "mysql.ipfire.org"
6
7 class HashConnection(tornado.database.Connection):
8 def __init__(self):
9 tornado.database.Connection.__init__(self, MYSQL_SERVER, "hashes", user="webapp")
10
11
12 class PlanetConnection(tornado.database.Connection):
13 def __init__(self):
14 tornado.database.Connection.__init__(self, MYSQL_SERVER, "planet", user="webapp")
15
16
17 class TrackerConnection(tornado.database.Connection):
18 def __init__(self):
19 tornado.database.Connection.__init__(self, MYSQL_SERVER, "tracker", user="webapp")