* Is there a way i could choose what gets displayed in the view & what
> doesn't get displayed from the database table based on its content using
> only python??*
>
>
{{for p in products:}}
<tr class="{{='hidden' if p.Quantity==0 else ''}}">
<td>{{=p.whatever}}</td>
</tr>
{{pass}}
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/51ee0ae3-af4e-49dd-91c9-2a91e0cd5dc6%40googlegroups.com.