Exemple #1
0
 def post(self):
   if self.form.validate(self.request.form):
     try:
       self.form.save()
       cache_set(self.request.user, 'gfcu', self.request.user.key().name())
     
       self.request.notifications.success('Zmiany zapisane!')
       return redirect(url_for('gfcaccount/index'))
     except Exception, e:
       logging.exception('Account edit save failed: ' + str(e))
       self.request.notifications.error('Zmian nie zapisano! Błąd zapisu, spróbuj później...')
       return redirect(url_for('gfcaccount/index'))