|
29 | 29 | "valid" bool, |
30 | 30 | "QPHttp" QPHttp, |
31 | 31 | "Relay" Relay, # Relay object for transmitting signals from QPHttp with adding the repoName information |
32 | | - "xmlData" QDomDocument, |
| 32 | + "xmlData" QBuffer, |
33 | 33 | "state" int, (0 - disabled, 1-loading, 2-loaded ok, 3-error (to be retried), 4-rejected) |
34 | 34 | "error" QString}} |
35 | 35 | mPlugins = dict of dicts {id : {"name" QString, |
@@ -87,6 +87,7 @@ def setIface(qgisIface): |
87 | 87 | ("Volkan Kepoglu's Repository","http://ggit.metu.edu.tr/~volkan/plugins.xml", ""), |
88 | 88 | ("GIS-Lab Repository", "http://gis-lab.info/programs/qgis/qgis-repo.xml", ""), |
89 | 89 | ("Marco Hugentobler's Repository","http://karlinapp.ethz.ch/python_plugins/python_plugins.xml", ""), |
| 90 | + ("Bob Bruce's Repository", "http://www.mappinggeek.ca/QGISPythonPlugins/Bobs-QGIS-plugins.xml", ""), |
90 | 91 | ("Sourcepole Repository", "http://build.sourcepole.ch/qgis/plugins.xml", "")] |
91 | 92 |
|
92 | 93 |
|
@@ -376,7 +377,10 @@ def requestFetching(self,key): |
376 | 377 | self.mRepositories[key]["state"] = 1 |
377 | 378 | url = QUrl(self.mRepositories[key]["url"]) |
378 | 379 | path = QString(url.toPercentEncoding(url.path(), "!$&'()*+,;=:@/")) |
379 | | - self.mRepositories[key]["QPHttp"] = QPHttp(url.host()) |
| 380 | + port = url.port() |
| 381 | + if port < 0: |
| 382 | + port = 80 |
| 383 | + self.mRepositories[key]["QPHttp"] = QPHttp(url.host(), port) |
380 | 384 | self.connect(self.mRepositories[key]["QPHttp"], SIGNAL("requestFinished (int, bool)"), self.xmlDownloaded) |
381 | 385 | self.connect(self.mRepositories[key]["QPHttp"], SIGNAL("stateChanged ( int )"), self.mRepositories[key]["Relay"].stateChanged) |
382 | 386 | self.connect(self.mRepositories[key]["QPHttp"], SIGNAL("dataReadProgress ( int , int )"), self.mRepositories[key]["Relay"].dataReadProgress) |
|
0 commit comments