Mercurial > bitten > bitten-test
changeset 382:2078b20186cf
Trac 0.11 compatibility fix in timeline event provider.
author | cmlenz |
---|---|
date | Tue, 24 Jul 2007 22:08:56 +0000 |
parents | 166dcdb9269e |
children | 45cbb0639b6f |
files | bitten/trac_ext/web_ui.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/trac_ext/web_ui.py +++ b/bitten/trac_ext/web_ui.py @@ -684,6 +684,11 @@ if 'build' not in filters: return + if isinstance(start, datetime): # Trac>=0.11 + from trac.util.datefmt import to_timestamp + start = to_timestamp(start) + stop = to_timestamp(stop) + add_stylesheet(req, 'bitten/bitten.css') db = self.env.get_db_cnx()