Merge lp:~thisfred/ubuntuone-client/science-fiction-double-feature into lp:ubuntuone-client
Status: | Merged |
---|---|
Approved by: | Eric Casteleijn |
Approved revision: | 831 |
Merged at revision: | 831 |
Proposed branch: | lp:~thisfred/ubuntuone-client/science-fiction-double-feature |
Merge into: | lp:ubuntuone-client |
Diff against target: |
215 lines (+105/-17) 7 files modified
tests/status/test_aggregator.py (+25/-5) ubuntuone/platform/linux/messaging.py (+12/-4) ubuntuone/platform/linux/notification.py (+7/-0) ubuntuone/platform/windows/messaging.py (+44/-0) ubuntuone/platform/windows/notification.py (+5/-0) ubuntuone/status/messaging.py (+6/-4) ubuntuone/status/notification.py (+6/-4) |
To merge this branch: | bzr merge lp:~thisfred/ubuntuone-client/science-fiction-double-feature |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Facundo Batista (community) | Approve | ||
Alejandro J. Cura (community) | Approve | ||
Review via email: mp+48169@code.launchpad.net |
Commit message
- Notifications can now be updated as well as appended to
- Messages can have a count, which can be updated after they are displayed
Description of the change
- Notifications can now be updated as well as appended to
- Messages can have a count, which can be updated after they are displayed
To test these features, put this in a python script, and run it from the root of the branch, (PYTHONPATH=. python /path/to/
from ubuntuone.platform import messaging, notification
n = notification.
mah_notification = n.send_
n.update_
mah_
def callback(indicator, message_time=None):
"""Hide the message again."""
messaging.
m = messaging.
m.show_
raw_input(
"The messaging menu should be at alert, with a message that has"
"count 2. (Don't click it.) Hit enter to continue.")
m.update_
raw_input(
"The messaging menu should be at alert, with a message that has"
"count 5. Hit enter to continue.")
Really like the branch, but I would like to see some tests for the notification and messaging modules.
After discussing this with thisfred, he told me he would be doing said tests in a new branch.