/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to revisionview.py

  • Committer: Daniel Schierbeck
  • Date: 2008-04-02 21:50:08 UTC
  • mto: (450.1.16 trunk)
  • mto: This revision was merged to the branch mainline in revision 458.
  • Revision ID: daniel.schierbeck@gmail.com-20080402215008-wep8iosl0y062rja
Renamed the crypt module to seahorse.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
from bzrlib.util.bencode import bdecode
29
29
 
30
30
try:
31
 
    from bzrlib.plugins.gtk import crypt
 
31
    from bzrlib.plugins.gtk import seahorse
32
32
except ImportError:
33
 
    has_crypt = False
 
33
    has_seahorse = False
34
34
else:
35
 
    has_crypt = True
 
35
    has_seahorse = True
36
36
 
37
37
def _open_link(widget, uri):
38
38
    subprocess.Popen(['sensible-browser', uri], close_fds=True)
149
149
        self.signature_label.set_markup("<b>Authenticity unknown</b>\n" +
150
150
                                        "This revision has not been signed.")
151
151
 
152
 
    def show_signature(self, crypttext):
153
 
        key = crypt.verify(crypttext)
 
152
    def show_signature(self, seahorsetext):
 
153
        key = seahorse.verify(seahorsetext)
154
154
 
155
155
        if key.is_available():
156
156
            if key.is_trusted():
177
177
 
178
178
        trust = key.get_trust()
179
179
 
180
 
        if trust <= crypt.TRUST_NEVER:
 
180
        if trust <= seahorse.TRUST_NEVER:
181
181
            trust_text = 'never trusted'
182
 
        elif trust == crypt.TRUST_UNKNOWN:
 
182
        elif trust == seahorse.TRUST_UNKNOWN:
183
183
            trust_text = 'not trusted'
184
 
        elif trust == crypt.TRUST_MARGINAL:
 
184
        elif trust == seahorse.TRUST_MARGINAL:
185
185
            trust_text = 'marginally trusted'
186
 
        elif trust == crypt.TRUST_FULL:
 
186
        elif trust == seahorse.TRUST_FULL:
187
187
            trust_text = 'fully trusted'
188
 
        elif trust == crypt.TRUST_ULTIMATE:
 
188
        elif trust == seahorse.TRUST_ULTIMATE:
189
189
            trust_text = 'ultimately trusted'
190
190
 
191
191
        self.signature_key_id_label.show()
248
248
 
249
249
        self._create_general()
250
250
        self._create_relations()
251
 
        if has_crypt:
 
251
        if has_seahorse:
252
252
            self._create_signature()
253
253
        self._create_file_info_view()
254
254
        self._create_bugs()