PluginManager/PluginRepositoryDialog.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3036
30c81c9e88b8
child 3142
55030c09e142
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
170 if self.__repositoryMissing or current is None: 170 if self.__repositoryMissing or current is None:
171 return 171 return
172 172
173 self.urlEdit.setText(current.data(0, urlRole) or "") 173 self.urlEdit.setText(current.data(0, urlRole) or "")
174 self.descriptionEdit.setPlainText( 174 self.descriptionEdit.setPlainText(
175 current.data(0, descrRole) and \ 175 current.data(0, descrRole) and
176 self.__formatDescription(current.data(0, descrRole)) or "") 176 self.__formatDescription(current.data(0, descrRole)) or "")
177 self.authorEdit.setText(current.data(0, authorRole) or "") 177 self.authorEdit.setText(current.data(0, authorRole) or "")
178 178
179 def __selectedItems(self): 179 def __selectedItems(self):
180 """ 180 """
335 else: 335 else:
336 E5MessageBox.critical( 336 E5MessageBox.critical(
337 self, 337 self,
338 self.trUtf8("Read plugins repository file"), 338 self.trUtf8("Read plugins repository file"),
339 self.trUtf8("<p>The plugins repository file <b>{0}</b> " 339 self.trUtf8("<p>The plugins repository file <b>{0}</b> "
340 "could not be read. Select Update</p>")\ 340 "could not be read. Select Update</p>")
341 .format(self.pluginRepositoryFile)) 341 .format(self.pluginRepositoryFile))
342 else: 342 else:
343 self.__repositoryMissing = True 343 self.__repositoryMissing = True
344 QTreeWidgetItem( 344 QTreeWidgetItem(
345 self.repositoryList, 345 self.repositoryList,
346 ["", self.trUtf8( 346 ["", self.trUtf8(
347 "No plugin repository file available.\nSelect Update.") 347 "No plugin repository file available.\nSelect Update.")
348 ]) 348 ])
349 self.repositoryList.resizeColumnToContents(1) 349 self.repositoryList.resizeColumnToContents(1)
350 350
351 def __downloadFile(self, url, filename, doneMethod=None): 351 def __downloadFile(self, url, filename, doneMethod=None):
352 """ 352 """
353 Private slot to download the given file. 353 Private slot to download the given file.

eric ide

mercurial