From 4fa5b2f1db752697d4acc2364dafb5e6e1b67d47 Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Fri, 17 Feb 2012 02:03:21 +0000 Subject: end range should be 33 since it is not inclusive add output to give feedback svn path=/branches/tk161/; revision=4349 --- rpkid/portal-gui/scripts/rpkigui-reset-demo.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'rpkid') diff --git a/rpkid/portal-gui/scripts/rpkigui-reset-demo.py b/rpkid/portal-gui/scripts/rpkigui-reset-demo.py index e910ab28..4158079b 100644 --- a/rpkid/portal-gui/scripts/rpkigui-reset-demo.py +++ b/rpkid/portal-gui/scripts/rpkigui-reset-demo.py @@ -24,15 +24,13 @@ issued by the labuser accounts. __version__ = '$Id$' from optparse import OptionParser -import logging from rpki.gui.app.models import ROARequest, GhostbusterRequest if __name__ == '__main__': parser = OptionParser(description=description) (options, args) = parser.parse_args() - - for n in xrange(1, 32): + for n in xrange(1, 33): username = 'labuser%02d' % n - logging.info('removing objects for ' + username) + print 'removing objects for ' + username for cls in (ROARequest, GhostbusterRequest): cls.objects.filter(issuer__handle=username).delete() -- cgit v1.2.3