Skip to content

Commit

Permalink
Slight code modification to rename HelloHandler to HomeHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
mikexstudios committed Feb 6, 2010
1 parent a23af56 commit 2ad9c90
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions mobwrite_tornado.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,20 @@ def get(self):
return self._query()


class HelloHandler(tornado.web.RequestHandler):
class HomeHandler(tornado.web.RequestHandler):
def get(self):
self.render('templates/editor.html')
return
self.write('<html><body>' +
'Use <tt>/mobwrite</tt> for the mobwrite API.' +
'</body></html>')


def main():
mobwrite_core.CFG.initConfig(mobwrite_daemon.ROOT_DIR
+ "lib/mobwrite_config.txt")
port = 3017
settings = dict(
static_path = os.path.join(os.path.dirname(__file__), "static"),
debug = 1
)
settings = {
'static_path': os.path.join(os.path.dirname(__file__), "static"),
'debug': 1,
}
application = tornado.web.Application([
(r'/', HelloHandler),
(r'/', HomeHandler),
(r'/mobwrite', MobWriteHandler),
], **settings)

Expand Down

0 comments on commit 2ad9c90

Please sign in to comment.