>
>     navlist=navlist + tuple(row.navID)
>

Tuples are immutable, so you cannot add to them. However, as you have done 
above, you can add two tuples to create a new tuple. So, just do:

navlist=navlist + tuple(UPDATEACCOUNTNAVID)

On the other hand, as Martin suggests, it may be more appropriate to use a 
list here.

Anthony
 

>     navs=db(db.nav.id.belongs(navlist)).select(orderby=db.nav.id)
>
>
> This works, however, I want to add a singel NAVID to navlist: 
> UPDATEACCOUNTNAVID
> I tried navlist.append(UPDATEACCOUNTNAVID) but that doesn't work.
> What's the correct syntax to add an item to navlist.
>
>
> Kind regards,
>
> Annet
>

-- 
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/groups/opt_out.

Reply via email to