this is in controller:
@auth.requires_login()
def check_DN_owning_email():
query = (db.DN_table.state == request.vars.link) & (db.DN_table.user_id
== auth.user_id)
row = db(query).select().first()
if row :
row.update_record(state='Confirmed')
response.flash = T('Now you can renew your account')
else:
response.flash = T('Confirmation string mismatch')
redirect('default','my_panel')
there is no view....
it updates the record, but return 'server error' and this is in shell after
running:
ERROR:Rocket.Errors.Thread-8:Traceback (most recent call last):
File "/home/yashar/Documents/web2py/gluon/rocket.py", line 1302, in run
self.run_app(conn)
File "/home/yashar/Documents/web2py/gluon/rocket.py", line 2003, in
run_app
output = self.app(environ, self.start_response)
File "/home/yashar/Documents/web2py/gluon/main.py", line 693, in
app_with_logging
ret[0] = wsgiapp(environ, responder2)
File "/home/yashar/Documents/web2py/gluon/main.py", line 617, in wsgibase
http_response, request, environ, ticket)
File "/home/yashar/Documents/web2py/gluon/rewrite.py", line 202, in
try_rewrite_on_error
status = int(str(http_response.status).split()[0])
ValueError: invalid literal for int() with base 10: 'my_panel'
is this a bug? or i did something wrong?
--