From dbf9b1e5f4df16c9f2eb020436b3feffc22f3517 Mon Sep 17 00:00:00 2001 From: epage Date: Thu, 22 Oct 2009 02:19:21 +0000 Subject: [PATCH] Notification Support has been tested to a limited degree on a device git-svn-id: file:///svnroot/gc-dialer/trunk@554 c39d3808-3fe2-4d86-a59f-b7f623ee9f21 --- src/alarm_handler.py | 8 +++----- src/examples/log_notifier.py | 2 ++ support/builddeb.py | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/alarm_handler.py b/src/alarm_handler.py index c187402..644b797 100644 --- a/src/alarm_handler.py +++ b/src/alarm_handler.py @@ -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 diff --git a/src/examples/log_notifier.py b/src/examples/log_notifier.py index 7dc3b97..7c0ce24 100644 --- a/src/examples/log_notifier.py +++ b/src/examples/log_notifier.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from __future__ import with_statement + import sys import datetime diff --git a/support/builddeb.py b/support/builddeb.py index bf6cde3..5381ff4 100755 --- a/support/builddeb.py +++ b/support/builddeb.py @@ -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([ -- 1.7.9.5