Re: [web2py] Re: Rendering null values in SQLFORM.grid

2015-03-30 Thread Johann Spies
You should be able to use field.represent to do that. If the value is None, then show something else like ''. Regards Johann On 30 March 2015 at 14:54, JorgeH wrote: > I am dealing with the same issue these days. Client told me to remove all > those 'None' fields. > > > > > On Monday, March 30

[web2py] Re: Rendering null values in SQLFORM.grid

2015-03-30 Thread JorgeH
I am dealing with the same issue these days. Client told me to remove all those 'None' fields. On Monday, March 30, 2015 at 7:36:51 AM UTC-5, Mirek Zvolský wrote: > > >> null value is not an empty string > > That's true. > However we make applications for customers and they aren't interested to

[web2py] Re: Rendering null values in SQLFORM.grid

2015-03-30 Thread Mirek Zvolský
>> null value is not an empty string That's true. However we make applications for customers and they aren't interested to see a technical value 'None', but the language translated value (something like T(None)) or symbol for None content. So I think it would be better if we have parameter how t

[web2py] Re: Rendering null values in SQLFORM.grid

2014-12-02 Thread Niphlod
why not ? the point here is representing something that isn't there as "something else (entirely your choice)" instead of "None". The solution IF THE APP DOESN'T CARE is to set a default. IF THE APP CARES you still have the represent solution, where you can use "whatever you want, we've got it"

[web2py] Re: Rendering null values in SQLFORM.grid

2014-12-02 Thread Yebach
Since I have time and integer fields I cannot set default to ''. What do you suggest for a solution? On Monday, June 10, 2013 5:32:33 PM UTC+2, Niphlod wrote: > > The second one you said (i.e. altering the default repr for None values). > From a "theoretical" standpoint, a null value is not an

[web2py] Re: Rendering null values in SQLFORM.grid

2013-06-10 Thread Lamps902
Thanks for the clarification, Niphlod. On Monday, June 10, 2013 10:32:33 AM UTC-5, Niphlod wrote: > > The second one you said (i.e. altering the default repr for None values). > From a "theoretical" standpoint, a null value is not an empty string. If > your app doesn't care for the difference, s

[web2py] Re: Rendering null values in SQLFORM.grid

2013-06-10 Thread Niphlod
The second one you said (i.e. altering the default repr for None values). >From a "theoretical" standpoint, a null value is not an empty string. If your app doesn't care for the difference, set a default='' on the interested fields. Il giorno lunedì 10 giugno 2013 15:42:21 UTC+2, Lamps902 ha sc