~ubuntu-branches/ubuntu/lucid/software-properties/lucid

« back to all changes in this revision

Viewing changes to softwareproperties/kde/SoftwarePropertiesKDE.py

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter, Michael Vogt, Harald Sitter
  • Date: 2009-08-22 16:35:34 UTC
  • Revision ID: james.westby@ubuntu.com-20090822163534-p8lgqge6oqjef5de
Tags: 0.75.2
[ Michael Vogt ]
* update software-properties.pot (LP: #407240)

[ Harald Sitter ]
* Add actual PGP key file endings to the KDE file picker whitelist (keep
  old endings around for compability)
* Fix the KDE UI's enable-component arg, add output to that function and
  reorder help output to list --attach as last

Show diffs side-by-side

added added

removed removed

Lines of Context:
692
692
    if "SUDO_USER" in os.environ:
693
693
        home = os.path.expanduser("~%s" % os.environ["SUDO_USER"])
694
694
    url = KUrl.fromPath(home)
695
 
    filename = KFileDialog.getOpenFileName(url, '*.gpg *.gpgkey| PGP keys', self.userinterface, utf8(_("Import key")))
 
695
    filename = KFileDialog.getOpenFileName(url, '*.asc *.pkr *.skr *.gpg *.gpgkey| PGP keys', self.userinterface, utf8(_("Import key")))
696
696
    if filename:
697
697
      if not self.add_key(filename):
698
698
        title = _("Error importing selected file")