[Trac_gajim-plugins] [Gajim Plugins] #56: Triggers lost on gajim restart

Gajim Plugins trac at gajim.org
Sun May 19 10:18:36 CEST 2013


#56: Triggers lost on gajim restart
-----------------------+----------------------------
  Reporter:  vorner    |      Owner:  asterix
      Type:  defect    |     Status:  new
  Priority:  critical  |  Component:  TriggersPlugin
Resolution:            |   Keywords:
Blocked By:            |   Blocking:
-----------------------+----------------------------

Comment (by Dicson):

 {{{
 diff --git a/triggers/triggers.py b/triggers/triggers.py
 --- a/triggers/triggers.py
 +++ b/triggers/triggers.py
 @@ -21,6 +21,7 @@

  import gtk
  import sys
 +import os

  from common import gajim
  from plugins import GajimPlugin
 @@ -28,6 +29,7 @@ from plugins.helpers import log_calls
  from plugins.gui import GajimPluginConfigDialog
  from common import ged
  from common import helpers
 +from dialogs import SoundChooserDialog


  class Triggers(GajimPlugin):
 @@ -191,10 +193,9 @@ class Triggers(GajimPlugin):
          while str(num) in self.config:
              rule = self.config[str(num)]
              if 'one_shot' in rule and not rule['one_shot']:
 -                new_config[new_num] = self.config[num].copy()
 +                self.config[new_num] = self.config[num].copy()
                  new_num += 1
              num += 1
 -        self.config = new_config

      def _nec_notif(self, obj):
          self._nec_all(obj, self.check_rule_apply_notif,
 self.apply_rule_notif)
 }}}

-- 
Ticket URL: <http://trac-plugins.gajim.org/ticket/56#comment:1>
Gajim Plugins <http://trac-plugins.gajim.org/>
Gajim Plugins


More information about the Trac_gajim-plugins mailing list