Not sure about that, but I guess that form.vars.id is not the key for the
id field you want, since SQLFORM.factory include 2 tables, web2py has to
make the field that has the same name in the 2 tables unique... I don't
know what web2py exactly do about that though, but form.vars.id is not
containing the id you search for... You could inspect the form.vars to know
what is the name of the key that contains the id you want... For that make
sure you have these lines in your view :
{{if request.is_local:}}
{{=response.toolbar()}}
{{pass}}
And look in "request" (request button)
Richard
On Wed, Mar 27, 2013 at 4:03 AM, BlueShadow <[email protected]> wrote:
> thanks Anthony, I got a couple lines further^^.
> now this line raises an error.:thisImage=db(dbtable.id==form.**vars.id).
> select()[0]
> for some reason I'm not able to select this image anymore.
>
> IndexError: list index out of range
>
>
> --
>
> ---
> 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/groups/opt_out.
>
>
>
--
---
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/groups/opt_out.