2009-09-09 11:11:05 +02:00
|
|
|
|
|
|
|
"""
|
2011-01-26 00:08:41 +01:00
|
|
|
Default settings for django-helpdesk.
|
2009-09-09 11:11:05 +02:00
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
|
2011-02-02 09:15:49 +01:00
|
|
|
|
|
|
|
try:
|
|
|
|
DEFAULT_USER_SETTINGS = settings.HELPDESK_DEFAULT_SETTINGS
|
|
|
|
except:
|
|
|
|
DEFAULT_USER_SETTINGS = None
|
|
|
|
|
|
|
|
if type(DEFAULT_USER_SETTINGS) != type(dict()):
|
|
|
|
DEFAULT_USER_SETTINGS = {
|
|
|
|
'use_email_as_submitter': True,
|
|
|
|
'email_on_ticket_assign': True,
|
|
|
|
'email_on_ticket_change': True,
|
|
|
|
'login_view_ticketlist': True,
|
|
|
|
'email_on_ticket_apichange': True,
|
|
|
|
'tickets_per_page': 25
|
|
|
|
}
|
2011-06-09 17:24:33 +02:00
|
|
|
|
2011-11-28 15:17:54 +01:00
|
|
|
|
|
|
|
|
2011-11-19 09:34:07 +01:00
|
|
|
''' generic options - visible on all pages '''
|
|
|
|
# redirect to login page instead of the default homepage when users visits "/"?
|
|
|
|
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = getattr(settings, 'HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT', False)
|
|
|
|
|
2011-11-23 20:12:27 +01:00
|
|
|
# customize helpdesk name on a few pages, i.e., your organization.
|
|
|
|
HELPDESK_PREPEND_ORG_NAME = getattr(settings, 'HELPDESK_PREPEND_ORG_NAME', False)
|
|
|
|
|
2013-11-25 16:51:14 +01:00
|
|
|
HELPDESK_ORG_LOGO = getattr(settings, 'HELPDESK_ORG_LOGO', False)
|
|
|
|
|
2011-06-09 17:24:33 +02:00
|
|
|
# show knowledgebase links?
|
|
|
|
HELPDESK_KB_ENABLED = getattr(settings, 'HELPDESK_KB_ENABLED', True)
|
2011-11-19 09:34:07 +01:00
|
|
|
|
2012-01-17 01:42:16 +01:00
|
|
|
# show knowledgebase links on staff view?
|
|
|
|
HELPDESK_KB_ENABLED_STAFF = getattr(settings, 'HELPDESK_KB_ENABLED_STAFF', False)
|
|
|
|
|
2011-11-19 09:34:07 +01:00
|
|
|
# show extended navigation by default, to all users, irrespective of staff status?
|
|
|
|
HELPDESK_NAVIGATION_ENABLED = getattr(settings, 'HELPDESK_NAVIGATION_ENABLED', False)
|
|
|
|
|
2013-12-09 17:48:11 +01:00
|
|
|
# allow local customisation, add the contents of a template file to the nav bar.
|
|
|
|
HELPDESK_NAVIGATION_CUSTOM_EXTEND = getattr(settings, 'HELPDESK_NAVIGATION_CUSTOM_EXTEND', False)
|
|
|
|
|
2011-11-19 09:34:07 +01:00
|
|
|
# show 'stats' link in navigation bar?
|
|
|
|
HELPDESK_NAVIGATION_STATS_ENABLED = getattr(settings, 'HELPDESK_NAVIGATION_STATS_ENABLED', True)
|
|
|
|
|
|
|
|
# set this to an email address inside your organization and a footer below
|
|
|
|
# the 'Powered by django-helpdesk' will be shown, telling the user whom to contact
|
|
|
|
# in case they have technical problems.
|
|
|
|
HELPDESK_SUPPORT_PERSON = getattr(settings, 'HELPDESK_SUPPORT_PERSON', False)
|
|
|
|
|
2011-11-21 17:39:13 +01:00
|
|
|
# show dropdown list of languages that ticket comments can be translated into?
|
|
|
|
HELPDESK_TRANSLATE_TICKET_COMMENTS = getattr(settings, 'HELPDESK_TRANSLATE_TICKET_COMMENTS', False)
|
|
|
|
|
|
|
|
# list of languages to offer. if set to false, all default google translate languages will be shown.
|
2012-01-11 20:44:03 +01:00
|
|
|
HELPDESK_TRANSLATE_TICKET_COMMENTS_LANG = getattr(settings, 'HELPDESK_TRANSLATE_TICKET_COMMENTS_LANG', ["en", "de", "fr", "it", "ru"])
|
2011-11-21 17:39:13 +01:00
|
|
|
|
2011-11-24 13:30:45 +01:00
|
|
|
# show link to 'change password' on 'User Settings' page?
|
|
|
|
HELPDESK_SHOW_CHANGE_PASSWORD = getattr(settings, 'HELPDESK_SHOW_CHANGE_PASSWORD', False)
|
|
|
|
|
2011-11-21 20:04:05 +01:00
|
|
|
# allow user to override default layout for 'followups' - work in progress.
|
|
|
|
HELPDESK_FOLLOWUP_MOD = getattr(settings, 'HELPDESK_FOLLOWUP_MOD', False)
|
|
|
|
|
2011-11-29 14:08:08 +01:00
|
|
|
# show custom welcome message in dashboard?
|
|
|
|
HELPDESK_CUSTOM_WELCOME = getattr(settings, 'HELPDESK_CUSTOM_WELCOME', False)
|
|
|
|
|
2012-08-07 15:41:43 +02:00
|
|
|
# auto-subscribe user to ticket if (s)he responds to a ticket?
|
|
|
|
HELPDESK_AUTO_SUBSCRIBE_ON_TICKET_RESPONSE = getattr(settings, 'HELPDESK_AUTO_SUBSCRIBE_ON_TICKET_RESPONSE', False)
|
2011-11-21 20:04:05 +01:00
|
|
|
|
2011-11-19 09:34:07 +01:00
|
|
|
|
|
|
|
''' options for public pages '''
|
|
|
|
# show 'view a ticket' section on public page?
|
|
|
|
HELPDESK_VIEW_A_TICKET_PUBLIC = getattr(settings, 'HELPDESK_VIEW_A_TICKET_PUBLIC', True)
|
|
|
|
|
|
|
|
# show 'submit a ticket' section on public page?
|
|
|
|
HELPDESK_SUBMIT_A_TICKET_PUBLIC = getattr(settings, 'HELPDESK_SUBMIT_A_TICKET_PUBLIC', True)
|
|
|
|
|
2012-03-01 23:28:54 +01:00
|
|
|
# Should we should the KB categories on the homepage?
|
|
|
|
HELPDESK_SHOW_KB_ON_HOMEPAGE = getattr(settings, 'HELPDESK_SHOW_KB_ON_HOMEPAGE', False)
|
|
|
|
|
2011-11-19 09:34:07 +01:00
|
|
|
|
2011-11-28 15:17:54 +01:00
|
|
|
|
2011-11-19 09:34:07 +01:00
|
|
|
''' options for update_ticket views '''
|
|
|
|
# allow non-staff users to interact with tickets? this will also change how 'staff_member_required'
|
|
|
|
# in staff.py will be defined.
|
|
|
|
HELPDESK_ALLOW_NON_STAFF_TICKET_UPDATE = getattr(settings, 'HELPDESK_ALLOW_NON_STAFF_TICKET_UPDATE', False)
|
|
|
|
|
|
|
|
# show edit buttons in ticket follow ups.
|
2012-08-07 15:24:31 +02:00
|
|
|
HELPDESK_SHOW_EDIT_BUTTON_FOLLOW_UP = getattr(settings, 'HELPDESK_SHOW_EDIT_BUTTON_FOLLOW_UP', True)
|
2011-11-19 09:34:07 +01:00
|
|
|
|
2012-08-07 15:32:45 +02:00
|
|
|
# show delete buttons in ticket follow ups if user is 'superuser'
|
|
|
|
HELPDESK_SHOW_DELETE_BUTTON_SUPERUSER_FOLLOW_UP = getattr(settings, 'HELPDESK_SHOW_DELETE_BUTTON_SUPERUSER_FOLLOW_UP', False)
|
|
|
|
|
2011-11-19 09:34:07 +01:00
|
|
|
# show ticket edit button on top of ticket description.
|
|
|
|
HELPDESK_SHOW_EDIT_BUTTON_TICKET_TOP = getattr(settings, 'HELPDESK_SHOW_EDIT_BUTTON_TICKET_TOP', True)
|
|
|
|
|
|
|
|
# show ticket delete button on top of ticket description.
|
|
|
|
HELPDESK_SHOW_DELETE_BUTTON_TICKET_TOP = getattr(settings, 'HELPDESK_SHOW_DELETE_BUTTON_TICKET_TOP', True)
|
|
|
|
|
|
|
|
# show hold / unhold button on top of ticket description.
|
|
|
|
HELPDESK_SHOW_HOLD_BUTTON_TICKET_TOP = getattr(settings, 'HELPDESK_SHOW_HOLD_BUTTON_TICKET_TOP', True)
|
|
|
|
|
|
|
|
# make all updates public by default? this will hide the 'is this update public' checkbox
|
|
|
|
HELPDESK_UPDATE_PUBLIC_DEFAULT = getattr(settings, 'HELPDESK_UPDATE_PUBLIC_DEFAULT', True)
|
|
|
|
|
2012-01-17 22:40:44 +01:00
|
|
|
# only show staff users in ticket owner drop-downs
|
|
|
|
HELPDESK_STAFF_ONLY_TICKET_OWNERS = getattr(settings, 'HELPDESK_STAFF_ONLY_TICKET_OWNERS', False)
|
|
|
|
|
|
|
|
# only show staff users in ticket cc drop-down
|
|
|
|
HELPDESK_STAFF_ONLY_TICKET_CC = getattr(settings, 'HELPDESK_STAFF_ONLY_TICKET_CC', False)
|
|
|
|
|
2011-11-19 09:34:07 +01:00
|
|
|
|
2011-11-28 15:17:54 +01:00
|
|
|
|
|
|
|
''' options for staff.create_ticket view '''
|
|
|
|
# hide the 'assigned to' / 'Case owner' field from the 'create_ticket' view?
|
|
|
|
HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO = getattr(settings, 'HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO', False)
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-19 09:34:07 +01:00
|
|
|
''' options for footer '''
|
|
|
|
# show 'API' link at bottom of page
|
|
|
|
HELPDESK_FOOTER_SHOW_API_LINK = getattr(settings, 'HELPDESK_FOOTER_SHOW_API_LINK', True)
|
2011-11-27 09:26:56 +01:00
|
|
|
|
|
|
|
# show / hide 'change language' link at bottom of page
|
|
|
|
HELPDESK_FOOTER_SHOW_CHANGE_LANGUAGE_LINK = getattr(settings, 'HELPDESK_FOOTER_SHOW_CHANGE_LANGUAGE_LINK', False)
|
|
|
|
|
2012-01-17 02:01:47 +01:00
|
|
|
''' email options '''
|
|
|
|
# default Queue email submission settings
|
|
|
|
QUEUE_EMAIL_BOX_TYPE = getattr(settings, 'QUEUE_EMAIL_BOX_TYPE', None)
|
2012-01-17 02:36:24 +01:00
|
|
|
QUEUE_EMAIL_BOX_SSL = getattr(settings, 'QUEUE_EMAIL_BOX_SSL', None)
|
2012-01-17 02:01:47 +01:00
|
|
|
QUEUE_EMAIL_BOX_HOST = getattr(settings, 'QUEUE_EMAIL_BOX_HOST', None)
|
|
|
|
QUEUE_EMAIL_BOX_USER = getattr(settings, 'QUEUE_EMAIL_BOX_USER', None)
|
|
|
|
QUEUE_EMAIL_BOX_PASSWORD = getattr(settings, 'QUEUE_EMAIL_BOX_PASSWORD', None)
|
2014-01-29 12:00:00 +01:00
|
|
|
|
|
|
|
HAS_TAG_SUPPORT = False
|