PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 942 - Use urllib2.ProxyHandler instead of QNetworkProxy
: Use urllib2.ProxyHandler instead of QNetworkProxy
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: QtNetwork
: 1.0.4
: PC MS Windows XP/Vista/7
: P5 enhancement
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-07-22 18:55 EEST by Lee Smith
Modified: 2011-08-23 00:37 EEST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lee Smith 2011-07-22 18:55:53 EEST
Consider this snippet which sets the HTTP proxy for the application.

   proxy = QNetworkProxy(QNetworkProxy.HttpCachingProxy, "www.proxy.com")
   QNetworkProxy.setApplicationProxy(proxy)

Is it more "Pythonic" if we could pass a urllib2 ProxyHandler? Is it even
possible?

   proxy = urllib2.ProxyHandler({'http': "www.proxy.com"})
   QNetworkProxy.setApplicationProxy(proxy)
Comment 1 Hugo Parente Lima 2011-07-22 20:41:35 EEST
Unfortunately it's not possible because each library have different and
incompatible APIs.
Comment 2 renato filho 2011-08-23 00:37:11 EEST
Release PySide 1.0.6