[web2py] Re: invalid literal for int() with base 10: '%s%id'

2012-02-12 Thread Praveen Bhat
Hello, Thank you as it worked for me. I did this: def show(): myid =request.vars.id redirect(URL(c='articles',f='show?id=%s' % myid)) Regards Praveen

[web2py] Re: invalid literal for int() with base 10: '%s%id'

2012-02-12 Thread Alan Etkin
The string interpolation here: redirect(URL(c='articles',f='show?id=%s%id')) is not being performed, so the controller gets ...%s%id as raw string, and the id argument should evaluate to an integer to return a db record. So i think that the part of the code that has to replace the string in the f