/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 crypt.py

  • Committer: Daniel Schierbeck
  • Date: 2008-04-02 20:59:49 UTC
  • mto: (450.1.16 trunk)
  • mto: This revision was merged to the branch mainline in revision 458.
  • Revision ID: daniel.schierbeck@gmail.com-20080402205949-t6io08bpz904ki06
Only show Signature tab if DBus and Seahorse are installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
KEY_TYPE_SSH = 'ssh'
14
14
 
15
15
bus = dbus.SessionBus()
 
16
 
 
17
if not bus.name_has_owner(BUS_NAME):
 
18
    raise ImportError
 
19
 
16
20
crypto = dbus.Interface(bus.get_object(BUS_NAME, CRYPTO_PATH), 
17
21
                        CRYPTO_INTERFACE)
18
22
openpgp = dbus.Interface(bus.get_object(BUS_NAME, OPENPGP_PATH),