ok in t3 db.py there IS is_admin :) -wj
On Thu, Dec 11, 2008 at 5:04 PM, Wes James <compte...@gmail.com> wrote: > Massimo, > > t3 is cool. > > In the last hour (following your t3 video), I've made a basic foto > gallery with CRUD (create, read, update, delete). > > In my lambda, how do i do: > > db.foto.represent=lambda foto: TABLE(TR(TD(foto.id,_bgcolor='#dfdfdf')),\ > TABLE(\ > > # show edit only when admin > > if admin: > TR(TD(A('Edit',_href=t2.action('wiki/edit',foto.id)),_colspan=2)),\ > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---