Added invalid date format to configs, with bold default

svn: r10618
This commit is contained in:
Doug Blank
2008-04-22 01:36:03 +00:00
parent c760272054
commit 20420efec2
4 changed files with 64 additions and 9 deletions

View File

@@ -34,6 +34,14 @@ import cgi
#
#-------------------------------------------------------------------------
import DateHandler
import Config
#-------------------------------------------------------------------------
#
# Globals
#
#-------------------------------------------------------------------------
invalid_date_format = Config.get(Config.INVALID_DATE_FORMAT)
#-------------------------------------------------------------------------
#
@@ -64,7 +72,7 @@ class EventRefModel(gtk.ListStore):
event = self.db.get_event_from_handle(event_ref.ref)
retval = DateHandler.get_date(event)
if not DateHandler.get_date_valid(event):
return u'<span background="#ffd5d5">%s</span>' % cgi.escape(retval)
return invalid_date_format % cgi.escape(retval)
else:
return retval