On Mar 31, 2:37 pm, "Waldemar Kornewald" <[EMAIL PROTECTED]> wrote: > On 3/31/07, Noah Kantrowitz <[EMAIL PROTECTED]> wrote: > > > > > Waldemar Kornewald wrote: > > > Hi, > > > what is the best way to customize Trac 0.11 templates? I haven't tried > > > it, yet, but it looks like I can make basic changes in site.html, but > > > how can I, for example, customize ticket/templates/query.html without > > > replacing the whole file? > > > Read up on py:match in the guide. > > I find it pretty difficult to solve my problems. One of them is, for > example, to remove the "Reporter" input field, so nobody can edit it > (it should still be visible read-only, though), not even admins. Then, > I also want to allow for users with TICKET_MODIFY permission to change > the description field. > > How can I do this? > > Also, how do I match something if <py:match path=""> already contains > double-quotes and the XPath expression needs them, too? E.g., > [EMAIL PROTECTED]"ticket"]. How can I escape the double-quotes, then?
You can use single quotes in XPath, or I think you can omit the quotes there too. -- Matt Good --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" 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-dev?hl=en -~----------~----~----~----~------~----~------~--~---
