Commit Graph

9 Commits

Author SHA1 Message Date
Dan McGee
90e08b4863 Make all datetime objects fully timezone aware
This is most of the transition to Django 1.4 `USE_TZ = True`. We need to
ensure we don't mix aware and non-aware datetime objects when dealing
with datetimes in the code. Add a utc_now() helper method that we can
use most places, and ensure there is always a timezone attached when
necessary.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23 19:54:40 -05:00
Dan McGee
a60801bb7d PyLint suggested cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-11 19:52:27 -06:00
Dan McGee
4fa709ea86 populate_signoffs: add an SVN log cache for duplicate lookups
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-09 09:28:49 -06:00
Dan McGee
0344f8ad56 Add ability to cache users by username on the UserFinder
This is very useful in the signoff message population script where we
are very likely to encounter the same users over and over.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-15 15:04:33 -06:00
Dan McGee
12408702ea Allow population of signoff specs with SVN commit messages
This pulls them from the latest SVN commit on trunk. We don't have a
failproof method of getting the exact right commit, but this should be
close if it is run on a regular basis via cron (aka hourly).

Note that running locally, I needed the development version of South to
get the migration included here to apply because of information_schema
changes in the current version of MySQL.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-14 12:27:38 -06:00
Dan McGee
e565fde00f Signoff email: prune empty content
Don't send the email at all if there are no packages even in the
repository, and don't print empty sections.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-04 11:31:35 -05:00
Dan McGee
5f2c3bf98b Signoffs changes and improvements
* Better signoff report with more detail
* Show signoff specification in signoffs view
* Honor disabled/bad flags and display in approval column
* Various other small bugfixes and tweaks

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03 20:39:59 -05:00
Dan McGee
9a5410ba4b Make signoff_report command send email
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03 17:33:00 -05:00
Dan McGee
49ac7efd68 Package signoff email report, initial revision
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03 17:19:53 -05:00