[Commits] (pavlov) updating the repositoryCallback to match the one
in Application.py
commits at osafoundation.org
commits at osafoundation.org
Mon Feb 2 16:34:40 PST 2004
Commit by: pavlov
Modified files:
osaf/chandler/Chandler/parcels/OSAF/framework/notifications/tests/TestNotifications.py 1.5 1.6
Log message:
updating the repositoryCallback to match the one in Application.py
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/framework/notifications/tests/TestNotifications.py.diff?r1=text&tr1=1.5&r2=text&tr2=1.6
Index: osaf/chandler/Chandler/parcels/OSAF/framework/notifications/tests/TestNotifications.py
diff -u osaf/chandler/Chandler/parcels/OSAF/framework/notifications/tests/TestNotifications.py:1.5 osaf/chandler/Chandler/parcels/OSAF/framework/notifications/tests/TestNotifications.py:1.6
--- osaf/chandler/Chandler/parcels/OSAF/framework/notifications/tests/TestNotifications.py:1.5 Tue Jan 27 12:01:54 2004
+++ osaf/chandler/Chandler/parcels/OSAF/framework/notifications/tests/TestNotifications.py Mon Feb 2 16:34:10 2004
@@ -1,7 +1,7 @@
""" Notification Manager unit tests """
-__revision__ = "$Revision: 1.5 $"
-__date__ = "$Date: 2004/01/27 20:01:54 $"
+__revision__ = "$Revision: 1.6 $"
+__date__ = "$Date: 2004/02/03 00:34:10 $"
__copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -19,7 +19,6 @@
event = eventKind.newItem(None, Globals.repository)
return event
-
def repositoryCallback(uuid, notification, reason, **kwds):
if notification == 'History':
eventPath = '//parcels/OSAF/framework/item_' + reason
@@ -30,8 +29,11 @@
from OSAF.framework.notifications.Notification import Notification
note = Notification(event)
- d = { 'uuid' : uuid }
+ note.threadid = id(threading.currentThread())
+ d = { 'uuid' : uuid, 'keywords' : kwds }
note.SetData(d)
+
+ #print uuid, notification, reason, kwds
Globals.notificationManager.PostNotification(note)
More information about the Commits
mailing list