Commit 7cf30aab authored by Lysander Trischler's avatar Lysander Trischler

Reflect tornado changes: tornado.database → torndb

parent 6f9fea39
......@@ -10,11 +10,13 @@
*.pyo
tornado
torndb.py
tornadyse
gpxpy
static/screen.css
static/gpx/*.gpx
static/gpx.js
karte
local.conf
tornado.log
nohup.out
......
......@@ -16,7 +16,7 @@ if __name__ == "__main__":
berlin = pytz.timezone("Europe/Berlin")
import tornado.options
import tornado.database
import torndb
import tornado.web
from tornado.web import authenticated
......@@ -196,7 +196,7 @@ if __name__ == "__main__":
ORDER BY gpx_files.start ASC
""", exercise.start - datetime.timedelta(days=1), exercise.end + datetime.timedelta(days=1))]
class GPXFile(tornado.database.Row):
class GPXFile(torndb.Row):
def __init__(self, handler, data):
super(GPXFile, self).__init__(**data)
......@@ -1093,7 +1093,7 @@ if __name__ == "__main__":
+ "/sessions",
localhost_ip=tornado.options.options.localhost_ip
)
self.db = tornado.database.Connection(
self.db = torndb.Connection(
host = tornado.options.options.mysql_hostname,
database = tornado.options.options.mysql_database,
user = tornado.options.options.mysql_username,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment