Am 03.08.2007 um 11:31 schrieb Álvaro J. Iradier Muro:
> I'm currently migrating some plugins to Trac 0.11.
>
> My admin plugin is still using the process_admin_request method, and
> when I try:
>
> req.redirect(self.env.href.admin(cat, page))

You should be using req.href everywhere you have a "req" object  
available.

In 0.11, the environment only knows about the path if the user  
explicitly configures it in trac.ini, otherwise it'll assume it's  
running on /.

If you use req.href, however, it'll use the information it has  
available through the request object to determine the correct URL.

req.href has been available since 0.10.

Cheers,
Chris
--
Christopher Lenz
   cmlenz at gmx.de
   http://www.cmlenz.net/


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to