Esempio n. 1
0
 def _process(self):
     form = LegalMessagesForm(**legal_settings.get_all())
     if form.validate_on_submit():
         legal_settings.set_multi(form.data)
         return redirect(url_for('legal.manage'))
     return WPManageLegalMessages.render_template('manage_messages.html',
                                                  form=form)
Esempio n. 2
0
 def _process(self):
     form = LegalMessagesForm(**legal_settings.get_all())
     if form.validate_on_submit():
         legal_settings.set_multi(form.data)
         return redirect(url_for('legal.manage'))
     return WPManageLegalMessages.render_template('manage_messages.html', form=form)