[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope
Subject:    Re: [Zope] Newbie: TAL Conditions
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2004-12-07 14:47:52
Message-ID: 20041207144752.GB8736 () morpheus ! matrix ! de
[Download RAW message or body]

On 07.Dec 2004 - 09:21:01, Tom_Rectenwald@carmax.com wrote:
> This works fine.  However, where there isn't a record (i.e. an empty 
> string), a <TD> will not be defined so that it leaves ugly gaps in the 
> table.  To ensure that a '<TD>&nbsp;</TD>' replaces an empty string '' I 
> added two tal:condition statements.  This works, but is sort of ugly 
> looking as, in my head, it is the equivalent of two 'if' statements when 
> it should be an 'if/else'.  The below code works, however is there a 
> cleaner way to do this?

AFAIK no, there is no "else" in tal:condition, but you should be able
to use SQL to add a "&nbsp;" wherever there is an empty string in that
column.

Andreas

-- 
Your reasoning powers are good, and you are a fairly good planner.
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic