Hello,
I've added this to my trac 0.11 site.html to try to make all reporter, to, and cc fields become mailtos. We have a trac repository in which all owners are e-mail addresses from a very large potential user population (LDAP authenticated). I had to use ticket.owner, etc, and not text() because text() had multiple newlines in it.

My cc solution won't work for multiple cc's, I trow. Is there some sort of 'strip white space' mechanism I could use from text() ? I read the trac/genshi/xpath documentation but couldn't figure out how to fit the pieces together.

Thanks
Steven


 <td py:match="t...@headers='h_reporter']" py:attrs="select('@*')">
  <a  href="mailto:${ticket.reporter}";>${select('*|text()')}</a>
 </td>
 <td py:match="t...@headers='h_owner']" py:attrs="select('@*')">
  <a href="mailto:${ticket.owner}";>${select('*|text()')}</a>
 </td>
 <td py:match="t...@headers='h_cc']" py:attrs="select('@*')">
  <a href="mailto:${select('*|text()')}">${select('*|text()')}</a>
 </td>

--
Steven R. Loomis  [email protected]
Technical Lead, ICU for C/C++   <http://icu-project.org>
IBM San José Globalization Center of Competency
<http://ibm.com/software/globalization>

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" 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/trac-users?hl=en.

Reply via email to