Manuele, Leonel thank you for the answer!

It works as a charm now...

@Leonel 
Strings ids come from specifications that are beyond my control : (.
However I have to admin that they were useful in some cases. 
I did not put the unique in the model even though the contraint is
implemented db side because the pollutant and pollutant_info tables
are assumed to be 'read_only' from the point of view of my webapp.
The tables are lookup tables that come from standard codelists whose
key values are not supposed to change in the future.

Thanks again
Luca

On Tuesday, September 23, 2014 3:39:22 PM UTC+2, Leonel Câmara wrote:
>
> IS_IN_DB actually accepts an orderby kwarg so you can just ask for the 
> order you want.
>
> That said why are you making your own string ids and why are they not 
> unique=True?
>

-- 
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.

Reply via email to