Beispiel #1
0
 def POST(self):
     f = self.form()
     if not f.validates(web.input(_unicode=False)):
         return render_settings(password_form=f)
     else:
         users.update(session.get_user_id(), password=f.d.password)
         session.reset()
         return render_settings(on_success_message='Your password has been successfuly changed.')
Beispiel #2
0
 def POST(self):
     f = self.form()
     if not f.validates(web.input(_unicode=False)):
         return render_settings(email_form=f)
     else:
         users.update(session.get_user_id(), email=f.d.email)
         session.reset()
         raise web.seeother('/settings')
 def POST(self):
     f = self.form()
     if not f.validates(web.input(_unicode=False)):
         return render_settings(email_form=f)
     else:
         users.update(session.get_user_id(), email=f.d.email)
         session.reset()
         raise web.seeother('/settings')
Beispiel #4
0
 def POST(self):
     crop_data = web.input()
     path = crop_data['path']
     x = crop_data['x']
     y = crop_data['y']
     w = crop_data['w']
     h = crop_data['h']
     s = utils.make_thumb_crop(path, x, y, w, h)
     session.reset()
     raise web.seeother('/settings')
 def POST(self):
     f = self.form()
     if not f.validates(web.input(_unicode=False)):
         return render_settings(password_form=f)
     else:
         users.update(session.get_user_id(), password=f.d.password)
         session.reset()
         return render_settings(
             on_success_message='Your password has been successfuly changed.'
         )
Beispiel #6
0
 def POST(self):
     crop_data = web.input()
     path = crop_data['path']
     x = crop_data['x']
     y = crop_data['y']
     w = crop_data['w']
     h = crop_data['h']
     s = utils.make_thumb_crop(path, x, y, w, h)
     session.reset()
     raise web.seeother('/settings')