def get(self):
# Render the default view
self.render("default.html")
+
+ def post(self):
+ """
+ This is the default handler which will find the correct form
+ and execute it.
+ """
+ form_id = self.get_argument("form")
+
+ # Find the form
+ form = self.tabs.get_form(form_id)
+ if not form:
+ raise tornado.web.HTTPError(400, "Could not find form with ID '%s'" % form_id)
+
+ # Execute the form action
+ form.execute()