def edit(self, id, **kwargs): card = model.DBSession.query(model.Card).get(id) c.form = html.literal(card_form(value=card, action="/abook/put")) return {}
def new(self, **kwargs): c.form = html.literal(card_form(value=kwargs, action="post")) return {}