Field('idp', type='boolean', label=T('IdP (home)'),represent=lambda v,r:
'Yes' if v else 'No')
On Thursday, 30 January 2014 07:09:49 UTC-6, Sakhi Hadebe wrote:
>
> Hi,
>
> I am a newbie on web2py. I have a small assignment on web2py that I am
> working on. I have read the tutorials and have understood a lot. But here I
> am stuck:
>
> I want to change the boolean value True/False of certain fields to Yes/No.
>
> These are the fields:
> Field('idp', type='boolean', label=T('IdP (home)')),
> Field('sp', type='boolean', label=T('SP (visited)')),
>
> On the database the fields are populated with T and F and sett to be of
> character(1) data type.
>
> Please help out, really dont know how to tackle this. I have checked the
> documentation, but I couldn't figure it out.
>
> Regards,
> Sakhi
>
--
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.