Subversion Repositories navi

Compare Revisions

Ignore whitespace Rev 8 → Rev 9

/webapp/main.py
35,13 → 35,13
 
class TestDB(tornado.web.RequestHandler):
def get(self):
text = ""
text = u""
db = tornado.database.Connection("127.0.0.1", "navi", user="navi", password="navi")
for thing in db.query("""
SELECT infixes, CHAR_LENGTH(navi) AS NL
FROM `metaWords`
ORDER BY NL DESC"""):
text = "<br />".join((text, str(thing["infixes"])))
text = u"<br />".join((text, unicode(thing["infixes"])))
self.write(text)
 
application = tornado.web.Application([