On Tue, Jan 27, 2009 at 11:28 AM, John Hampton <pacopa...@pacopablo.com> wrote:
>
> Olemis Lang wrote:
>> Recently I found I could not access the URLs in my Trac env using
>> urllib (Python stdlib ... ;) ...
>>
>> I posted a ticket [1]_ to python.org since I considered it was a bug
>> in urllib ... but tracd seems to be responsible for this behavior ...
>>
>> I do not know whether I have to repost this issue to the Trac team so
>> that trac-devs be aware of it, or I have to do anything else ... the
>> fact is that this can prevent other apps (... like the one I am coding
>> right now ...) to retrieve wiki pages and so on if using tracd ... :(
>
> <snip details>
>
> I would suggest opening a ticket on t.e.o if one does not exist already.
>  An email to the trac-dev list would be good too (though most devs also
> read this list).
>

Ooops ... I didnt know about trac-dev list ...

> I'm not sure exactly what the answer for this question is.  At it's
> core, trac is simply a WSGI application, and therefore I don't believe
> that it is its responsibility to worry about such URLS.

+1

> That being
> said, trac comes with a webserver, tracd.  Perhaps it should be fixed
> there.

+1

> However, tracd is simply built on top of BaseHTTPServer, which
> is part of the standard library.  Should this be the responsibility of
> BaseHTTPServer?  I don't know the answer.
>

Unfortunately I dont know either ... :( ... but AFAICR ...
BaseHTTPServer is not responsible for finding the appropriate handler
for a particular path ... servers (e.g. Apache, tracd), web apps (e.g.
Trac) and/or frameworks (e.g. django) are the ones responsible for
that ... In fact, the original «problem» [1]_ was that tracd reported
'Environment not found' error ...

However trac-devs are the ones ... ;)

.. [1] urllib.open sends full URL after GET command instead of local path
       
(http://bugs.python.org/issue50...@ok_message=msg%2080654%20created%3cbr%3eissue%205072%20messages%20edited%20ok&@template=item)
-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
Sobrepasa las 100 descargas el módulo dutest

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to