#674: opening urls to self with urllib
------------------------------+---------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: defect | Status: reopened
Priority: normal | Milestone: 0.9a5
Component: CherryPy | Version: 0.9a3
Severity: normal | Resolution:
Keywords: |
------------------------------+---------------------------------------------
Comment (by alberto):
Looks like a witty winXP thread/IPC deadlock... I'm not sure there's
anything that can be done at the TG level to fix this (maybe at CP?)...
{{{
#!python
@expose()
def rdf(self, portId=1857):
import urllib
xhtmlUri = 'http://localhost:8080/'
xhtml = urllib.urlopen(xhtmlUri)
return "yeah!"
}}}
works like a charm in my shinny PB.
I think it's normal that nosetests run fine as I *believe* create_request
doesn't really spawn a real server as init_only is passed to
cp.server.start
Alberto .
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/674>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---