From 090685b6d96ac2b2cbe5e2f32544e58e7688bb56 Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Tue, 19 Apr 2011 23:02:33 +0000 Subject: [PATCH] Clean up comments in create_usersettings, and fix copyright in escalate_tickets. --- .../management/commands/create_usersettings.py | 16 +++++++++++----- helpdesk/management/commands/escalate_tickets.py | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/helpdesk/management/commands/create_usersettings.py b/helpdesk/management/commands/create_usersettings.py index 2d691faf..9309f7ec 100644 --- a/helpdesk/management/commands/create_usersettings.py +++ b/helpdesk/management/commands/create_usersettings.py @@ -1,6 +1,12 @@ -# -*- coding: utf-8 -*- +#!/usr/bin/python +""" +django-helpdesk - A Django powered ticket tracker for small enterprise. -"Management command to add create UserSettings" +See LICENSE for details. + +create_usersettings.py - Easy way to create helpdesk-specific settings for +users who don't yet have them. +""" from django.utils.translation import ugettext as _ from django.core.management.base import BaseCommand @@ -13,7 +19,9 @@ class Command(BaseCommand): "create_usersettings command" help = _('Check for user without django-helpdesk UserSettings ' - 'and create if missing') + 'and create settings if required. Uses ' + 'settings.DEFAULT_USER_SETTINGS which can be overridden to ' + 'suit your situation.') def handle(self, *args, **options): "handle command line" @@ -23,5 +31,3 @@ class Command(BaseCommand): except UserSettings.DoesNotExist: s = UserSettings(user=u, settings=DEFAULT_USER_SETTINGS) s.save() - -# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 \ No newline at end of file diff --git a/helpdesk/management/commands/escalate_tickets.py b/helpdesk/management/commands/escalate_tickets.py index 6188e81a..13f6b712 100644 --- a/helpdesk/management/commands/escalate_tickets.py +++ b/helpdesk/management/commands/escalate_tickets.py @@ -1,6 +1,6 @@ #!/usr/bin/python """ -Jutda Helpdesk - A Django powered ticket tracker for small enterprise. +django-helpdesk - A Django powered ticket tracker for small enterprise. (c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details.