because it changes what is in request.vars.values()[0] the result of
this expression is not predictable because the values are not ordered.

Do not use

categoria = request.vars.values()[0]


On Sep 18, 3:50 pm, Jose <[email protected]> wrote:
> On 18 sep, 18:02, mdipierro <[email protected]> wrote:
>
> > You have..:
>
> > if len(request.vars):
> >         categoria = request.vars.values()[0]
> >     rubros = db(db.rubros_clasificados.id_categoria ==
> > categoria).select()
>
> > and truns out categoria is not an integer.
>
> Ok, but there error only when I upload a picture? When I not upload
> the picture, works well.
> Why is that?
>
> Jose
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to