#674: opening urls to self with urllib
------------------------------+---------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: defect | Status: reopened
Priority: normal | Milestone: 0.9a4
Component: CherryPy | Version: 0.9a3
Severity: normal | Resolution:
Keywords: |
------------------------------+---------------------------------------------
Comment (by [EMAIL PROTECTED]):
In controllers.py, I was using this code to prepare data to be sent as a
dictionary to the template engine. I don't know if this helps, but here is
a stripped down version of the code I was trying to use:
{{{
# controllers.py
@turbogears.expose(format="xml")
def rdf(self, portId=1857):
xhtmlUri = 'http://localhost:8080/XXX A TG HOSTED URL XXX'
# ... Doing Stuff Here .... #
# this is where things get stuck
xhtml = urllib.urlopen(xhtmlUri)
#..... do more stuff .....#
return something
}}}
--
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
-~----------~----~----~----~------~----~------~--~---