Hum yes I had modified the script before you give me the solution in your previous mail. I revert back to the original version, put your modification again and now it work fine Yes I've put authentication on the virtual dir Thank you for your help Fabrice ----- Original Message ----- From: "Markus Fuchs" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, October 24, 2006 9:29 PM Subject: [Trac] Re: global name 'absolute_url' is not defined > > Hi Fabrice, > >> I often have this error: >> >> ------------------------------------------------ >> Python Traceback >> Traceback (most recent call last): >> File "C:\Python23\lib\site-packages\trac\web\main.py", line >> 357, in dispatch_request >> dispatcher.dispatch(req) >> File "C:\Python23\lib\site-packages\trac\web\main.py", line >> 224, in dispatch >> resp = chosen_handler.process_request(req) >> File "C:\Python23\Lib\site-packages\trac\Settings.py", line >> 48, in process_request >> self._do_save(req) >> File "C:\Python23\Lib\site-packages\trac\Settings.py", line >> 69, in _do_save >> req.redirect(req.href.settings()) >> File "C:\Python23\lib\site-packages\trac\web\api.py", line >> 323, in redirect >> url = absolute_url(self, url) >> NameError: global name 'absolute_url' is not defined >> ------------------------------------------------ >> >> This seem to come from my modifications to get it working on >> IIS (helped by Markus and by >> http://trac.edgewall.org/wiki/TracOnWindowsIis6) > > You seem to have modified redirect() in api.py. Please note that this > information/modification is outdated. Trac uses absolute urls for > redirecting since quite a while (see http://trac.edgewall.org/ticket/697). > Anyway, there'll still appear some errors in your logs since IIS 5.x does > not accept a Set-Cookie-Header when the response was a 302, but this does > not prevent Trac from working on IIS as you as an IIS user will have to > restrict your site to authenticated users anyway. > > Cheers, > Markus > > > > > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.428 / Virus Database: 268.13.7/488 - Release Date: 19/10/2006 > 15:00 > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
