Is there anything wrong with using kid to do this? Presuming that you
are using identity you could do something like (lifted from
templates/master.kid):

<span py:if="not
tg.identity.anonymous">$foowidget.display(stuff)</span>

If that doesn't work you can always override the display method, put
your check in, then call the regular display method if it passes and
return an empty string or something if it fails.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to