PluginManager/PluginRepositoryDialog.py

changeset 3113
2780e230f129
parent 3112
9485059ea9fa
child 3142
55030c09e142
child 3160
209a07d7e401
equal deleted inserted replaced
3112:9485059ea9fa 3113:2780e230f129
11 import sys 11 import sys
12 import os 12 import os
13 import zipfile 13 import zipfile
14 14
15 from PyQt4.QtCore import pyqtSignal, pyqtSlot, Qt, QFile, QIODevice, QUrl, \ 15 from PyQt4.QtCore import pyqtSignal, pyqtSlot, Qt, QFile, QIODevice, QUrl, \
16 QProcess, QDate 16 QProcess
17 from PyQt4.QtGui import QWidget, QDialogButtonBox, QAbstractButton, \ 17 from PyQt4.QtGui import QWidget, QDialogButtonBox, QAbstractButton, \
18 QTreeWidgetItem, QDialog, QVBoxLayout 18 QTreeWidgetItem, QDialog, QVBoxLayout
19 from PyQt4.QtNetwork import QNetworkAccessManager, QNetworkRequest, \ 19 from PyQt4.QtNetwork import QNetworkAccessManager, QNetworkRequest, \
20 QNetworkReply 20 QNetworkReply
21 21
210 210
211 @param status flaging indicating a successful download (boolean) 211 @param status flaging indicating a successful download (boolean)
212 @param filename full path of the downloaded file (string) 212 @param filename full path of the downloaded file (string)
213 """ 213 """
214 self.__populateList() 214 self.__populateList()
215 Preferences.Prefs.settings.setValue(
216 "Updates/LastCheckDate", QDate.currentDate())
217 215
218 def __downloadPluginDone(self, status, filename): 216 def __downloadPluginDone(self, status, filename):
219 """ 217 """
220 Private method called, when the download of a plugin is finished. 218 Private method called, when the download of a plugin is finished.
221 219
314 if os.path.exists(self.pluginRepositoryFile): 312 if os.path.exists(self.pluginRepositoryFile):
315 self.__repositoryMissing = False 313 self.__repositoryMissing = False
316 f = QFile(self.pluginRepositoryFile) 314 f = QFile(self.pluginRepositoryFile)
317 if f.open(QIODevice.ReadOnly): 315 if f.open(QIODevice.ReadOnly):
318 from E5XML.PluginRepositoryReader import PluginRepositoryReader 316 from E5XML.PluginRepositoryReader import PluginRepositoryReader
319 reader = PluginRepositoryReader(f, self) 317 reader = PluginRepositoryReader(f, self.addEntry)
320 reader.readXML() 318 reader.readXML()
321 self.repositoryList.resizeColumnToContents(0) 319 self.repositoryList.resizeColumnToContents(0)
322 self.repositoryList.resizeColumnToContents(1) 320 self.repositoryList.resizeColumnToContents(1)
323 self.repositoryList.resizeColumnToContents(2) 321 self.repositoryList.resizeColumnToContents(2)
324 self.__resortRepositoryList() 322 self.__resortRepositoryList()

eric ide

mercurial