Notification Support has been tested to a limited degree on a device
authorepage <eopage@byu.net>
Thu, 22 Oct 2009 02:19:21 +0000 (02:19 +0000)
committerepage <eopage@byu.net>
Thu, 22 Oct 2009 02:19:21 +0000 (02:19 +0000)
git-svn-id: file:///svnroot/gc-dialer/trunk@554 c39d3808-3fe2-4d86-a59f-b7f623ee9f21

src/alarm_handler.py
src/examples/log_notifier.py
support/builddeb.py

index c187402..644b797 100644 (file)
@@ -134,16 +134,14 @@ class _FremantleAlarmHandler(object):
 
                event = alarm.Event()
                event.appid = self._TITLE
-               event.message = "GoogleVoice updates"
                event.alarm_time = alarmTime
-               event.recurrences_left = -1
+               event.recurrences_left = self._REPEAT_FOREVER
 
-               action = event.add_action(1)[0]
+               action = event.add_actions(1)[0]
                action.flags |= alarm.ACTION_TYPE_EXEC | alarm.ACTION_WHEN_TRIGGERED
                action.command = self._launcher
 
-               recurrence = event.add_recurrence(1)[0]
-               recurrence.recurrences_left = self._REPEAT_FOREVER
+               recurrence = event.add_recurrences(1)[0]
                recurrence.mask_min |= _create_recurrence_mask(recurrenceMins, 60)
                recurrence.mask_hour |= alarm.RECUR_HOUR_DONTCARE
                recurrence.mask_mday |= alarm.RECUR_MDAY_DONTCARE
index 7dc3b97..7c0ce24 100644 (file)
@@ -1,5 +1,7 @@
 #!/usr/bin/env python
 
+from __future__ import with_statement
+
 import sys
 import datetime
 
index bf6cde3..5381ff4 100755 (executable)
@@ -33,6 +33,7 @@ __changelog__ = """
 1.0.8
 * Sped up login time by delay loading contact list
 * Ability to narrow down messages either by type or status
+* Fremantle: Notification Support including testing of custom notifications
 * UI Tweak: Cut down the number of times the login dialog is needlessly displayed
 
 1.0.7
@@ -257,7 +258,7 @@ def build_package(distribution):
                "debian": ", python-glade2",
                "chinook": maemoSpecificDepends,
                "diablo": maemoSpecificDepends,
-               "fremantle": maemoSpecificDepends + ", python-glade2",
+               "fremantle": maemoSpecificDepends + ", python-glade2, python-alarm",
                "mer": maemoSpecificDepends + ", python-glade2",
        }[distribution]
        p.recommends = ", ".join([