On 10/27/06, Michael Steinfeld <[EMAIL PROTECTED]> wrote:
> Duh, right after I clicked send I saw the mistake. don't need to put quotes
> around '0' and it works.

In other words, it helps to pose the question correctly if you want to
get correct suggestions!

> however it screws up my layout but I don't know why it screw up my table
> cells. Argh.. !! kid is a pain, I don't know Geshi, but hopefully it won't
> hurt as much.

Genshi wouldn't really be much different in this case. You just need
to understand how DOM-based templating is supposed to work. One bonus
is that your output HTML will be much cleaner (because it has to be,
in order to be a valid template). Ideally you should modernize the
rest of it (use css and classes instead of old school bgcolor, align,
etc.)

This should be a literal translation, which is ugly, but would be much
less ugly using classes:

    <td py:for="day in days" py:attrs="day and {'bgcolor': '#29558D',
'align': 'middle'} or {'bgcolor': '#eeeeee'}">
        <a class="links" href="day.py?day=${day}" py:if="day">${day}</a>
    </td>

-bob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to turbogears@googlegroups.com
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