def form(self, data=None, errors=None): if data is None: data = {} if 'all_tags' not in data: q_tag = self.dbsession.query(Tag) data['all_tags'] = q_tag.order_by(Tag.name).all() if 'props' not in data: data['props'] = {} if 'is_fts' not in data: data['is_fts'] = True data['csrf_token'] = self.request.session.get_csrf_token() return render_form(self.form_tmpl, self.request, data, errors=errors)
def form(self, data=None, errors=None): return render_form(self.form_tmpl, self.request, data, errors=errors)