* Issue #23 - 'verbose' option on create_escalation_exclusions

caused issues with some other installed Django apps. Thank you
  to Paul Boehm.
This commit is contained in:
Ross Poulton 2008-11-18 00:00:36 +00:00
parent 4a70c7bb1f
commit 988a4db198
2 changed files with 4 additions and 4 deletions

2
README
View File

@ -120,7 +120,7 @@ LICENSE.JQUERY and LICENSE.NICEDIT for their respective license terms.
the dates manually via the Admin, or setup a cronjob to run
scripts/create_escalation_exclusions.py on a regular basis:
0 0 * * 0 /path/to/helpdesksite/manage.py create_escalation_exclusions.py --days saturday,sunday --verbose
0 0 * * 0 /path/to/helpdesksite/manage.py create_escalation_exclusions.py --days saturday,sunday --escalate-verbosely
This will, on a weekly basis, create exclusions for the coming weekend.

View File

@ -37,7 +37,7 @@ class Command(BaseCommand):
'--queues', '-q',
help='Queues to include (default: all). Use queue slugs'),
make_option(
'--verbose', '-v',
'--escalate-verbosely', '-x',
action='store_true',
default=False,
help='Display a list of dates excluded'),
@ -50,7 +50,7 @@ class Command(BaseCommand):
queue_slugs = options['queues']
queues = []
if options['verbose']:
if options['escalate-verbosely']:
verbose = True
# this should already be handled by optparse
@ -129,7 +129,7 @@ if __name__ == '__main__':
queues = []
for o, a in opts:
if o in ('-v', '--verbose'):
if o in ('-x', '--escalate-verbosely'):
verbose = True
if o in ('-d', '--days'):
days = a