Italo Maia wrote:
> Adam Jones wrote:
> > Have you tried something like the following: (assuming that 'matchid'
> > is a variable provided by the controller)
> >
> > <span py:match="item.id == matchid"
> > ...
> >
> > On a side note, this is one of the areas where I *really* want to see
> > the switch to Genshi. XSLT is designed specifically for this kind of
> > application, and IMHO does it really well. It also has better
> > documentation. ;)
> >
> > Anyways, hope that helps,
> > -Adam
>
> Nope, no juicy
Now that I dig into it some more, it looks like Kid is using
ElementTree under the hood to do all of this. Try this one instead:
<span py:match="item.attrib['id'] == matchid"
...
Relevant page for ElementTree docs is here if this works and you want
to know more:
http://effbot.org/zone/element.htm#the-element-type
-Adam
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---