djblets.log.views¶
Views for the log app.
- parse_timestamp(format, timestamp_str)[source]¶
Utility function to parse a timestamp into a datetime.datetime.
Python 2.5 and up have datetime.strptime, but Python 2.4 does not, so we roll our own as per the documentation.
If passed a timestamp_str of None, we will return None as a convenience.
- build_query_string(request, params)[source]¶
Builds a query string that includes the specified parameters along with those that were passed to the page.
params is a dictionary.
- iter_log_lines(from_timestamp, to_timestamp, requested_levels)[source]¶
Generator that iterates over lines in a log file, yielding the yielding information about the lines.