Esempio n. 1
0
 def show_password_dialog(self, reply, authenticator):
     if reply.url().host() == config.setting['server_host']:
         ret = QtGui.QMessageBox.question(
             self, _(u"Authentication Required"),
             _(u"Picard needs authorization to access your personal data on the MusicBrainz server. Would you like to log in now?"
               ), QtGui.QMessageBox.Yes | QtGui.QMessageBox.No,
             QtGui.QMessageBox.Yes)
         if ret == QtGui.QMessageBox.Yes:
             pass
     else:
         dialog = PasswordDialog(authenticator, reply, parent=self)
         dialog.exec_()
Esempio n. 2
0
 def show_password_dialog(self, reply, authenticator):
     if reply.url().host() == config.setting['server_host']:
         ret = QtWidgets.QMessageBox.question(self,
             _("Authentication Required"),
             _("Picard needs authorization to access your personal data on the MusicBrainz server. Would you like to log in now?"),
             QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
             QtWidgets.QMessageBox.Yes)
         if ret == QtWidgets.QMessageBox.Yes:
             self.tagger.mb_login(self.on_mb_login_finished)
     else:
         dialog = PasswordDialog(authenticator, reply, parent=self)
         dialog.exec_()
Esempio n. 3
0
 def show_password_dialog(self, reply, authenticator):
     if reply.url().host() == config.setting["server_host"]:
         ret = QtGui.QMessageBox.question(
             self,
             _(u"Authentication Required"),
             _(
                 u"Picard needs authorization to access your personal data on the MusicBrainz server. Would you like to log in now?"
             ),
             QtGui.QMessageBox.Yes | QtGui.QMessageBox.No,
             QtGui.QMessageBox.Yes,
         )
         if ret == QtGui.QMessageBox.Yes:
             pass
     else:
         dialog = PasswordDialog(authenticator, reply, parent=self)
         dialog.exec_()
Esempio n. 4
0
 def show_password_dialog(self, reply, authenticator):
     dialog = PasswordDialog(authenticator, reply, parent=self)
     dialog.exec_()
Esempio n. 5
0
 def show_password_dialog(self, reply, authenticator):
     dialog = PasswordDialog(authenticator, reply, parent=self)
     dialog.exec_()