Author: croberts
Date: 2012-02-15 18:17:21 +0000 (Wed, 15 Feb 2012)
New Revision: 5221
Modified:
trunk/wooly/python/wooly/__init__.py
Log:
Fixing the timestamps for Notifications. This is required to fully address BZ 787138
Modified: trunk/wooly/python/wooly/__init__.py
===================================================================
--- trunk/wooly/python/wooly/__init__.py 2012-02-14 20:13:05 UTC (rev 5220)
+++ trunk/wooly/python/wooly/__init__.py 2012-02-15 18:17:21 UTC (rev 5221)
@@ -852,9 +852,11 @@
message = message.capitalize()
self.message = message
self.preamble = preamble
+ self.timestamp = datetime.now() #may want a superclass since this is duplicated
in TaskInvocation
def get_message(self, session):
- return "%s: %s" % (self.preamble, self.message)
+ timestamp = "%s-%02d-%02d %02d:%02d:%02d" % (self.timestamp.year,
self.timestamp.month, self.timestamp.day, self.timestamp.hour, self.timestamp.minute,
self.timestamp.second)
+ return "<span class='notification_time'>%s</span> %s:
%s" % (timestamp, self.preamble, self.message)
class SessionAttribute(object):
def __init__(self, widget, name):
Show replies by date