[web2py] Re: negative ID values in the ID field break use of format in SQLFORM.grid

2013-02-08 Thread Massimo Di Pierro
Just pushed a change in trunk that may fix it. Can you check?

On Friday, 8 February 2013 00:41:35 UTC-6, Tim Richardson wrote:
>
> Using 2.3.2 with MSQL, I have a table T1 where the primary key is ID 
> (migrate=false)
> Most values have ID > 0 but I have two special cases where the ID is < 0 
> T1 uses format to make a friendly display of the primary key. 
>
> Then this table is referred to in another table T2 using reference. 
> When I use SQLFORM.grid to display T2, in the column for the referring 
> field shows the friendly format whenever the ID >0, but for my two rows 
> where ID = -1 and ID = -2 the format field is skipped; instead I see "-1" 
> or "-2".
>
>
>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: negative ID values in the ID field break use of format in SQLFORM.grid

2013-02-09 Thread Tim Richardson
Thanks Massimo,
that works. 

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.