]> git.ipfire.org Git - ipfire.org.git/blame - webapp/backend/base.py
planet: Make the publish radio button work.
[ipfire.org.git] / webapp / backend / base.py
CommitLineData
a6dc0bad
MT
1#!/usr/bin/python
2
3import tornado.database
4
5import accounts
6import planet
7
8MYSQL_SERVER = "mysql-master.ipfire.org"
9MYSQL_DB = "webapp"
10MYSQL_USER = "webapp"
11
12class 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)