Skip to content

Commit

Permalink
Added the handler to create new room. (for deployment)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiratara committed Dec 28, 2010
1 parent 1aacc3e commit f139205
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tasks.py
Expand Up @@ -24,8 +24,14 @@ def get(self):

self.response.out.write("Deleted.\n")

class AddRoom(webapp.RequestHandler):
def get(self, room_id):
model.Room(key_name=room_id).put()
self.response.out.write("Added %s." % room_id)

application = webapp.WSGIApplication([
('/tasks/clean_members', CleanMembers),
(r'/tasks/clean_members', CleanMembers),
(r'/tasks/add_room/(\w+)', AddRoom),
], debug=True)

def main():
Expand Down

0 comments on commit f139205

Please sign in to comment.