def save_page_name(self, page_id): page = h.get_page_by_id(page_id) name = request.POST.get('name', None) if name is None: abort(400) page.name = name meta.Session.commit()
def _do_on_behalf_of_form(self, page_id): c.page = h.get_page_by_id(page_id) on_behalf_of = request.POST.get('on_behalf_of') if on_behalf_of is None: abort(400) c.page.on_behalf_of = on_behalf_of meta.Session.commit() return render('/page/behalf.mako')
def on_behalf_of_form(self, page_id): c.page = h.get_page_by_id(page_id) return render('/page/behalf-form.mako')