Sorry, I posted a bugged version. Replace:
> <div id="main_content">
> <span py:if="not tg_flash.startswith('%%')">
> <div id="status_block" py:if="tg_flash" class="flash"
> py:content="tg_flash"></div>
> </span>
> <span py:if="tg_flash.startswith('%%')">
> <span py:if="tg_flash.startswith('%%warning%%')">
> <div id="warning" py:if="tg_flash" class="warning"
> py:content="tg_flash.split('%%')[2]"></div>
> </span>
> <span py:if="tg_flash.startswith('%%error%%')">
> <div id="error" py:if="tg_flash" class="error"
> py:content="tg_flash.split('%%')[2]"></div>
> </span>
> <span py:if="tg_flash.startswith('%%ok%%')">
> <div id="flash" py:if="tg_flash" class="flash"
> py:content="tg_flash.split('%%')[2]"></div>
> </span>
> </span>
> <div py:replace="[item.text]+item[:]"/>
> </div>
>
with
<div id="main_content">
<span py:if="tg_flash">
<span py:if="not tg_flash.startswith('%%')">
<div id="status_block" py:if="tg_flash" class="flash"
py:content="tg_flash"></div>
</span>
<span py:if="tg_flash.startswith('%%')">
<span py:if="tg_flash.startswith('%%warning%%')">
<div id="warning" py:if="tg_flash" class="warning"
py:content="tg_flash.split('%%')[2]"></div>
</span>
<span py:if="tg_flash.startswith('%%error%%')">
<div id="error" py:if="tg_flash" class="error"
py:content="tg_flash.split('%%')[2]"></div>
</span>
<span py:if="tg_flash.startswith('%%ok%%')">
<div id="flash" py:if="tg_flash" class="flash"
py:content="tg_flash.split('%%')[2]"></div>
</span>
</span>
</span>
<div py:replace="[item.text]+item[:]"/>
</div>
Thanks,
Mel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---