Hello community,

here is the log from the commit of package when-command for openSUSE:Factory 
checked in at 2016-03-05 13:07:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/when-command (Old)
 and      /work/SRC/openSUSE:Factory/.when-command.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "when-command"

Changes:
--------
--- /work/SRC/openSUSE:Factory/when-command/when-command.changes        
2016-02-16 09:18:31.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.when-command.new/when-command.changes   
2016-03-05 13:07:29.000000000 +0100
@@ -1,0 +2,9 @@
+Fri Mar  4 07:46:25 UTC 2016 - sor.ale...@meowr.ru
+
+- Update to 0.9.10~beta2 (changes since 0.9.9~beta2):
+  * Add possibility to pause selected condition checks through the
+    remote API.
+  * Fix a bug that prevented perstistence of suspension state if it
+    had been set using the Remote D-Bus API.
+
+-------------------------------------------------------------------

Old:
----
  when-command-0.9.9-beta.2.tar.gz

New:
----
  when-command-0.9.10-beta.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ when-command.spec ++++++
--- /var/tmp/diff_new_pack.p5uXjb/_old  2016-03-05 13:07:29.000000000 +0100
+++ /var/tmp/diff_new_pack.p5uXjb/_new  2016-03-05 13:07:29.000000000 +0100
@@ -16,9 +16,9 @@
 #
 
 
-%define _version 0.9.9-beta.2
+%define _version 0.9.10-beta.2
 Name:           when-command
-Version:        0.9.9~beta2
+Version:        0.9.10~beta2
 Release:        0
 Summary:        Configurable user task scheduler
 License:        BSD-3-Clause

++++++ when-command-0.9.9-beta.2.tar.gz -> when-command-0.9.10-beta.2.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/when-command-0.9.9-beta.2/README.md 
new/when-command-0.9.10-beta.2/README.md
--- old/when-command-0.9.9-beta.2/README.md     2016-02-09 19:41:50.000000000 
+0100
+++ new/when-command-0.9.10-beta.2/README.md    2016-03-02 00:45:02.000000000 
+0100
@@ -11,6 +11,9 @@
 
 The complete documentation for **When** can be found online 
[here](http://when-documentation.readthedocs.org/). Documentation for 
contributors has a separate 
[site](http://contributing-to-when.readthedocs.org/).
 
+## Alternate Interface
+Besides being fully configurable and accessible from both the command line 
interface and the graphical user interface, an alternate and more streamlined 
GUI for **When** is being actively developed: the [When 
Wizard](https://github.com/almostearthling/when-wizard) suite can be used to 
create actions in **When** in a possibly easier way.
+
 ## Credits
 Open Source Software relies on collaboration, and I'm more than happy to 
receive help from other developers. Here I'll list the main contributions.
 - Adolfo Jayme-Barrientos, aka [fitojb](https://github.com/fitojb), for the 
Spanish translation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/when-command-0.9.9-beta.2/share/when-command/when-command.py 
new/when-command-0.9.10-beta.2/share/when-command/when-command.py
--- old/when-command-0.9.9-beta.2/share/when-command/when-command.py    
2016-02-09 19:41:50.000000000 +0100
+++ new/when-command-0.9.10-beta.2/share/when-command/when-command.py   
2016-03-02 00:45:02.000000000 +0100
@@ -78,8 +78,8 @@
 # * the first holds the version ID that build utilities can extract
 # * the second one includes a message that is used both as a commit message
 #   and as a tag-associated message (in `git tag -m`)
-APPLET_VERSION = '0.9.9~beta.2'
-APPLET_TAGDESC = 'Thorough checks for item import or remote injection'
+APPLET_VERSION = '0.9.10~beta.2'
+APPLET_TAGDESC = 'Stable beta fully compatible with alternate UI'
 
 # logging constants
 LOG_FORMAT = '%(asctime)s %(levelname)s: %(message)s'
@@ -1709,6 +1709,14 @@
     def RunCLIBasedCondition(self, cond_name, deferred=False):
         return start_event_condition(cond_name, deferred)
 
+    @dbus.service.method(APPLET_BUS_NAME, in_signature='sb', out_signature='b')
+    def SuspendCondition(self, cond_name, suspend=True):
+        return suspend_condition(cond_name, suspend)
+
+    @dbus.service.method(APPLET_BUS_NAME, in_signature='s', out_signature='b')
+    def IsSuspendedCondition(self, cond_name):
+        return is_suspended_condition(cond_name)
+
     @dbus.service.method(APPLET_BUS_NAME, in_signature='ss', out_signature='v')
     def GetConfig(self, section, entry):
         try:
@@ -4558,6 +4566,7 @@
                         msgbox.set_markup(resources.DLG_WRONG_EXIT_STATUS)
                         msgbox.run()
                         msgbox.hide()
+                        msgbox.destroy()
                         applet_log.warning("DLGTASK: wrong exit code 
specification")
                         s = 0
                     task.set_check(success_status=s)
@@ -4576,6 +4585,7 @@
                         msgbox.set_markup(resources.DLG_WRONG_EXIT_STATUS)
                         msgbox.run()
                         msgbox.hide()
+                        msgbox.destroy()
                         s = 0
                     task.set_check(failure_status=s)
                 elif idx == 1:
@@ -4604,6 +4614,7 @@
                 msgbox.set_markup(resources.DLG_CONFIRM_DELETE_TASK % name)
                 ret = msgbox.run()
                 msgbox.hide()
+                msgbox.destroy()
                 if ret == Gtk.ResponseType.YES:
                     self.default_box(True)
                     if tasks.remove(task_name=name):
@@ -4616,6 +4627,7 @@
                             resources.DLG_CANNOT_DELETE_TASK % name)
                         msgbox.run()
                         msgbox.hide()
+                        msgbox.destroy()
                 else:
                     applet_log.info("DLGTASK: removal of task %s canceled" % 
name)
             else:
@@ -4625,6 +4637,7 @@
                 msgbox.set_markup(resources.DLG_CANNOT_FIND_TASK % name)
                 msgbox.run()
                 msgbox.hide()
+                msgbox.destroy()
             return None
         else:
             return None
@@ -5091,6 +5104,7 @@
                         msgbox.set_markup(resources.DLG_WRONG_EXIT_STATUS)
                         msgbox.run()
                         msgbox.hide()
+                        msgbox.destroy()
                         applet_log.warning("DLGCOND: wrong exit code 
specification")
                         status = 0
                 elif chk == 1:
@@ -5134,6 +5148,7 @@
                         msgbox.set_markup(resources.DLG_PATH_NOT_SPECIFIED)
                         msgbox.run()
                         msgbox.hide()
+                        msgbox.destroy()
                         return None
                 else:
                     msgbox = Gtk.MessageDialog(type=Gtk.MessageType.ERROR,
@@ -5141,6 +5156,7 @@
                     msgbox.set_markup(resources.DLG_NOT_ENABLED_FEATURE)
                     msgbox.run()
                     msgbox.hide()
+                    msgbox.destroy()
                     applet_log.warning("DLGCOND: file watch condition is 
disabled")
                     return None
             elif idx == 6:
@@ -5170,6 +5186,7 @@
                 msgbox.set_markup(resources.DLG_CONFIRM_DELETE_CONDITION % 
name)
                 ret = msgbox.run()
                 msgbox.hide()
+                msgbox.destroy()
                 if ret == Gtk.ResponseType.YES:
                     self.default_box(True)
                     if conditions.remove(cond_name=name):
@@ -5182,6 +5199,7 @@
                             resources.DLG_CANNOT_DELETE_CONDITION % name)
                         msgbox.run()
                         msgbox.hide()
+                        msgbox.destroy()
                 else:
                     applet_log.debug("DLGCOND: removal of condition %s 
canceled")
             else:
@@ -5191,6 +5209,7 @@
                 msgbox.set_markup(resources.DLG_CANNOT_FIND_CONDITION % name)
                 msgbox.run()
                 msgbox.hide()
+                msgbox.destroy()
             return None
         else:
             return None
@@ -5267,6 +5286,7 @@
             msgbox.set_markup(resources.DLG_WRONG_PARAM_INDEX)
             msgbox.run()
             msgbox.hide()
+            msgbox.destroy()
             return
         sub_idx = o('txtValueSub').get_text()
         if sub_idx == '':
@@ -5281,6 +5301,7 @@
                 msgbox.set_markup(resources.DLG_WRONG_PARAM_INDEX)
                 msgbox.run()
                 msgbox.hide()
+                msgbox.destroy()
                 return
         l = [x for x in self.signal_param_tests
              if x.value_idx != value_idx or x.sub_idx != sub_idx]
@@ -5462,6 +5483,7 @@
                     resources.DLG_CANNOT_REGISTER_SIGHANDLER % name)
                 msgbox.run()
                 msgbox.hide()
+                msgbox.destroy()
             signal_handlers.save()
             return h
         elif ret == ACTION_DELETE:
@@ -5474,6 +5496,7 @@
                     resources.DLG_CONFIRM_DELETE_SIGHANDLER % name)
                 ret = msgbox.run()
                 msgbox.hide()
+                msgbox.destroy()
                 if ret == Gtk.ResponseType.YES:
                     self.default_box(True)
                     if signal_handlers.remove(handler_name=name):
@@ -5486,6 +5509,7 @@
                             resources.DLG_CANNOT_DELETE_SIGHANDLER % name)
                         msgbox.run()
                         msgbox.hide()
+                        msgbox.destroy()
                 else:
                     applet_log.info("DLGSIG: removal of signal handler %s 
canceled" % name)
             return None
@@ -6191,6 +6215,28 @@
     return True
 
 
+def suspend_condition(cond_name, suspend=True, save=True):
+    if cond_name not in conditions.names:
+        applet_log.warning("MAIN: cannot suspend non existing condition %s" % 
cond_name)
+        return False
+    cond = conditions.get(cond_name=cond_name)
+    if suspend:
+        cond.suspend()
+    else:
+        cond.resume()
+    if save:
+        cond.save()
+    return True
+
+
+def is_suspended_condition(cond_name):
+    if cond_name not in conditions.names:
+        applet_log.warning("MAIN: cannot qyery non existing condition %s" % 
cond_name)
+        return False
+    cond = conditions.get(cond_name=cond_name)
+    return cond.suspended
+
+
 def export_task_history(filename):
     try:
         items = history.items()


Reply via email to