On Tuesday 24 January 2006 16:28, Kilian CAVALOTTI wrote:
> Please see my (working for me, YMMV) solution in the attached patch.

Oops, just a quick note to mention that you'll probably have to adjust 
env.href and env.abs_href definitions if you want working links in the 
generated email signature. 

I use the following:
self.env.abs_href = Href(env.config.get('project', 'url') + 'trac/')
self.env.href = Href(env.config.get('project', 'url'))

which produce:
Ticket URL: <http://localhost/trac/ticket/107>
project <http://localhost>

I don't think there's a clean way to get the cgi_location equivalent (the part 
to add to env.config.get('project', 'url')), since the tickets are not 
produced from a web request.

-- 
Kilian CAVALOTTI                      Administrateur réseaux et systèmes
UPMC / CNRS - LIP6 (C870)
8, rue du Capitaine Scott                          Tel. : 01 44 27 88 54
75015 Paris - France                               Fax. : 01 44 27 70 00
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to