Discussion:
Omit tag on tal:content if ``None`` ?
Malthe Borch
2008-10-12 15:26:48 UTC
Permalink
While working on a form api, we'd like to change the behavior of the
tal:content; if we'd omit the tag on ``None``, we could have:

<div class="error" tal:content="error" />

instead of

<div class="error" tal:content="error" tal:condition="error" />

\malthe

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "z3c.pt" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to z3c_pt+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/z3c_pt?hl=en
-~----------~----~----~----~------~----~------~--~---
Hanno Schlichting
2008-10-12 15:58:35 UTC
Permalink
Post by Malthe Borch
While working on a form api, we'd like to change the behavior of the
<div class="error" tal:content="error" />
instead of
<div class="error" tal:content="error" tal:condition="error" />
If we only do this on None (maybe False) and not an empty string, that
sounds good to me.

Hanno

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "z3c.pt" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to z3c_pt+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/z3c_pt?hl=en
-~----------~----~----~----~------~----~------~--~---
Malthe Borch
2008-10-12 16:00:56 UTC
Permalink
Excellent.
Post by Hanno Schlichting
Post by Malthe Borch
While working on a form api, we'd like to change the behavior of the
<div class="error" tal:content="error" />
instead of
<div class="error" tal:content="error" tal:condition="error" />
If we only do this on None (maybe False) and not an empty string, that
sounds good to me.
Hanno
--
--=====================--
mail: ***@gmail.com
homepage: zeitmaschine.dk
--=====================--

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "z3c.pt" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to z3c_pt+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/z3c_pt?hl=en
-~----------~----~----~----~------~----~------~--~---
Loading...