forked from extern/django-helpdesk
* 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:
parent
4a70c7bb1f
commit
988a4db198
2
README
2
README
@ -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
|
the dates manually via the Admin, or setup a cronjob to run
|
||||||
scripts/create_escalation_exclusions.py on a regular basis:
|
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.
|
This will, on a weekly basis, create exclusions for the coming weekend.
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ class Command(BaseCommand):
|
|||||||
'--queues', '-q',
|
'--queues', '-q',
|
||||||
help='Queues to include (default: all). Use queue slugs'),
|
help='Queues to include (default: all). Use queue slugs'),
|
||||||
make_option(
|
make_option(
|
||||||
'--verbose', '-v',
|
'--escalate-verbosely', '-x',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
default=False,
|
default=False,
|
||||||
help='Display a list of dates excluded'),
|
help='Display a list of dates excluded'),
|
||||||
@ -50,7 +50,7 @@ class Command(BaseCommand):
|
|||||||
queue_slugs = options['queues']
|
queue_slugs = options['queues']
|
||||||
queues = []
|
queues = []
|
||||||
|
|
||||||
if options['verbose']:
|
if options['escalate-verbosely']:
|
||||||
verbose = True
|
verbose = True
|
||||||
|
|
||||||
# this should already be handled by optparse
|
# this should already be handled by optparse
|
||||||
@ -129,7 +129,7 @@ if __name__ == '__main__':
|
|||||||
queues = []
|
queues = []
|
||||||
|
|
||||||
for o, a in opts:
|
for o, a in opts:
|
||||||
if o in ('-v', '--verbose'):
|
if o in ('-x', '--escalate-verbosely'):
|
||||||
verbose = True
|
verbose = True
|
||||||
if o in ('-d', '--days'):
|
if o in ('-d', '--days'):
|
||||||
days = a
|
days = a
|
||||||
|
Loading…
Reference in New Issue
Block a user