I ended up using the Clean option from the admin app and I no longer have
this problem.
On Tuesday, October 9, 2018 at 1:26:27 PM UTC-5, Valdeck Rowe wrote:
>
> Whenever I try to access the database via appadmin, I'm getting
> "ValueError: invalid literal for int() with base 10: 'user' " .
>
> The app itself works as designed, however, for some reason the appadmin
> app is affected.
>
> The nearest thing I can tell is that appadmin uses 'db' or the table name
> in request.args[0] while my app uses request.args[0] for the numeric id of
> the main item that the app is based on.
>
> Not sure what's causing this as I've built apps in this way before.
>
> All my controller functions being with this where needed:
> if len(request.args) > 0:
> survey_id = int(request.args[0])
> survey = db.survey(survey_id)
> table.survey.default=survey.id
> else:
> redirect(URL('survey', 'list'))
>
> So within the controller functions, I use survey.id instead of survey_id
> (for security - not sure if this is overkill), where necessary.
>
> Could this be a case of web2py compiling something and then it affects
> other apps?
>
>
>
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.