[Commits] act-server branch master updated.

C. Scott Ananian cscott at laptop.org
Fri Jan 9 18:20:30 EST 2009


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "/home/cscott/public_git/act-server".

The branch, master has been updated
       via  774385a9af987d8477f63844e60aad07be49477f (commit)
      from  938235e48e1dd12323abbd3382506fa180c882f3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

 scripts/django-no-devkeys.py |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100755 scripts/django-no-devkeys.py

- Log -----------------------------------------------------------------
commit 774385a9af987d8477f63844e60aad07be49477f
Author: C. Scott Ananian <cscott at laptop.org>
Date:   Fri Jan 9 18:15:34 2009 -0500

    Add script to list laptops which do not yet have pre-generated dev keys.
    
    In addition to use for escrow, pre-generating keys helps ensure speedy
    responses to dev key requests.

diff --git a/scripts/django-no-devkeys.py b/scripts/django-no-devkeys.py
new file mode 100755
index 0000000..bc5b8a4
--- /dev/null
+++ b/scripts/django-no-devkeys.py
@@ -0,0 +1,23 @@
+#!/usr/bin/python2.4
+"""Print laptop serial numbers which do not yet have generated developer
+keys."""
+import sys
+sys.path.append(sys.path[0]+'/..')
+from django.core.management import setup_environ
+from oats import settings
+setup_environ(settings)
+
+def info():
+    from oats.gts.models import Laptop
+
+    for laptop in Laptop.objects.order_by('-mfg_when')\
+            .exclude(lease__disposition__exact='DA'):#[:10000]:
+        print laptop.serial_number
+    
+def main():
+    from optparse import OptionParser
+    parser = OptionParser(usage='%prog')
+    (options, args) = parser.parse_args()
+    info()
+
+if __name__ == '__main__': main ()
-----------------------------------------------------------------------


--
/home/cscott/public_git/act-server


More information about the Commits mailing list