> when the _get_flash() return None(maybe?), the output would not have
> key "tg_flash", so it was wrong.

for the moment you can use this in your template:

<div py:if="hasattr(self, 'tg_flash')" class="flash"
py:content="tg_flash"></div>

note the hasattr() method

regards,

Florent.

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to