Beispiel #1
0
 def _process(self):
     form = EventPersonLinkForm(obj=self.event_new, event=self.event_new, event_type=self.event_new.type)
     if form.validate_on_submit():
         update_event(self.event_new, form.data)
         tpl = get_template_module('events/management/_event_person_links.html')
         return jsonify_data(html=tpl.render_event_person_links(self.event_new.type, self.event_new.person_links))
     self.commit = False
     return jsonify_form(form)
Beispiel #2
0
 def _process(self):
     form = EventPersonLinkForm(obj=self.event_new, event=self.event_new, event_type=self.event_new.type)
     if form.validate_on_submit():
         update_event(self.event_new, form.data)
         tpl = get_template_module('events/management/_event_person_links.html')
         return jsonify_data(html=tpl.render_event_person_links(self.event_new.type, self.event_new.person_links))
     self.commit = False
     return jsonify_form(form)
Beispiel #3
0
 def get_event_person_links_data(self, event):
     form = EventPersonLinkForm(event=event, event_type=event.type)
     if not form.validate_on_submit():
         raise FormValuesError(form.errors)
     return form.person_link_data.data
Beispiel #4
0
 def get_event_person_links_data(self, event):
     form = EventPersonLinkForm(event=event, event_type=event.type)
     if not form.validate_on_submit():
         raise FormValuesError(form.errors)
     return form.person_link_data.data