Found the problem:
redirect('settings','index')

Should be:
redirect(URL('settings','index')) but the response it uses to handle it is
a major bug.

On Tue, May 1, 2012 at 5:15 PM, Bruce Wade <[email protected]> wrote:

> Hi,
>
> The screen only shows Server Error the console output shows:
>
> <Row {'auth_event': <gluon.dal.Set object at 0x394a6d0>, 'last_name':
> 'Wade', 'update_record': <function <lambda> at 0x393e410>, 'uad_id': '12',
> 'reset_password_key': '', 'postal_code': 'V3B7W7', 'registration_key': '',
> 'id': 1, 'referral_id': '3244', 'city': 1, 'first_name': 'Stealth',
> 'reset_security_key': '', 'auth_cas': <gluon.dal.Set object at 0x394a750>,
> 'email': '[email protected]', 'delete_record': <function <lambda> at
> 0x393e398>, 'province': 1, 'registration_id': '', 'phone': '6047211080',
> 'address': '5115 Norfolk St', 'password':
> '6493b31ce41b6619c4f2889fc3cfa2e4', 'country': 1, 'auth_membership':
> <gluon.dal.Set object at 0x394a650>}>
> ERROR:Rocket.Errors.Thread-11:Traceback (most recent call last):
>
>   File
> "/home/bruce/Development/bossteam_dev/projects/yaw_dev/gluon/rocket.py",
> line 1302, in run
>     self.run_app(conn)
>
>   File
> "/home/bruce/Development/bossteam_dev/projects/yaw_dev/gluon/rocket.py",
> line 1994, in run_app
>     output = self.app(environ, self.start_response)
>
>   File
> "/home/bruce/Development/bossteam_dev/projects/yaw_dev/gluon/main.py", line
> 678, in app_with_logging
>     ret[0] = wsgiapp(environ, responder2)
>
>   File
> "/home/bruce/Development/bossteam_dev/projects/yaw_dev/gluon/main.py", line
> 602, in wsgibase
>     http_response, request, environ, ticket)
>
>   File
> "/home/bruce/Development/bossteam_dev/projects/yaw_dev/gluon/rewrite.py",
> line 164, in try_rewrite_on_error
>     status = int(str(http_response.status).split()[0])
>
> ValueError: invalid literal for int() with base 10: 'index'
>
> And the code that is causing it:
>
> if createAccountFrom.accepts(request,session):
>         member = advertising_db(advertising_db.auth_user.id ==
> auth.user.id).select().first()
>         print member
>         #member.first_name = createAccountFrom.vars.fname
>         #print member
>         session.flash = T("Account information has been updated!")
>         redirect('settings','index')
>
> --
> --
> Regards,
> Bruce Wade
> http://ca.linkedin.com/in/brucelwade
> http://www.wadecybertech.com
> http://www.fittraineronline.com - Fitness Personal Trainers Online
> http://www.warplydesigned.com
>
>


-- 
-- 
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com

Reply via email to