/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos

  • Committer: teddy at bsnet
  • Date: 2010-09-02 19:07:20 UTC
  • mto: (24.1.154 mandos)
  • mto: This revision was merged to the branch mainline in revision 421.
  • Revision ID: teddy@fukt.bsnet.se-20100902190720-sp0pitu30isx4pvi
* mandos (ClientDBus.approvals_pending): Bug fix: Only send D-Bus
                                         signals if connected to the
                                         D-Bus.

Show diffs side-by-side

added added

removed removed

Lines of Context:
713
713
        DBusObjectWithProperties.__init__(self, self.bus,
714
714
                                          self.dbus_object_path)
715
715
    
716
 
    def _get_approvals_pending(value):
 
716
    def _get_approvals_pending(self, value):
717
717
        return self._approvals_pending
718
 
    def _set_approvals_pending(value):
 
718
    def _set_approvals_pending(self, value):
719
719
        old_value = self._approvals_pending
720
720
        self._approvals_pending = value
721
721
        bval = bool(value)
722
 
        if bval is bool(old_value):
 
722
        if (hasattr(self, "dbus_object_path")
 
723
            and bval is bool(old_value)):
723
724
            dbus_bool = dbus.Boolean(bval, variant_level=1)
724
725
            self.PropertyChanged(dbus.String(u"approved_pending"),
725
726
                                 dbus_bool)