Module Expr Str ImportFrom alias ImportFrom alias TryExcept body ImportFrom alias Assign NameStore Call NameLoad handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Import alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias Import alias Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad If CompareEq NameLoad Str body Return Call NameLoad Str If CompareNotEq AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If Call NameLoad NameLoad BinOpMod Str NameLoad body Return Call Call NameLoad NameLoad BinOpMod Str NameLoad Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Assign NameStore Str If BoolOpAnd CompareEq NameLoad NameLoad NameLoad body Assign NameStore Str If CompareIs NameLoad NameLoad body If CompareEq NameLoad NameLoad body Assign NameStore Str orelse If CompareEq NameLoad NameLoad body Assign NameStore Str orelse If CompareEq NameLoad NameLoad body Assign NameStore Str orelse If CompareEq NameLoad NameLoad body Assign NameStore Str orelse If CompareEq NameLoad NameLoad body Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr Str Return NameLoad decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Str attr ListComp ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Str attr ListComp ListLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad BinOpMod Str AttributeLoad NameLoad attr orelse Return Call NameLoad NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad Call AttributeLoad NameLoad attr ListComp Dict Str Str BinOpMod Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Return Call NameLoad NameLoad BinOpMod Str AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Return Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad body Return Call NameLoad NameLoad Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return Call NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return Call NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str If CompareNotIn NameLoad ListLoad Str Str body Return Call NameLoad NameLoad Str If UnaryOpNot NameLoad body Return Call NameLoad NameLoad Str Assign NameStore Call NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str If NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore ListLoad If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Str NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareNotIn AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr CompareNotIn AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad Str NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd AttributeLoad NameLoad attr CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str NameLoad AttributeLoad AttributeLoad NameLoad attr attr CompareNotIn AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad Str NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad If UnaryOpNot NameLoad body Return Call NameLoad NameLoad Str Assign NameStore Call NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call NameLoad Str NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareNotIn AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr CompareNotIn AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad Str NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd AttributeLoad NameLoad attr CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad AttributeLoad AttributeLoad NameLoad attr attr CompareNotIn AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad Str NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list decorator_list
N/A N/A                                      ..
django-helpdesk - A Django powered ticket tracker for small enterprise.

(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details.

api.py - Wrapper around API calls, and core functions to provide complete
         API to third party applications.

The API documentation can be accessed by visiting http://helpdesk/api/help/
(obviously, substitute helpdesk for your django-helpdesk URI), or by reading
through templates/helpdesk/help_api.html.
 django forms django.contrib.auth authenticate N/A N/A django.contrib.auth get_user_model N/A User N/A get_user_model N/A N/A N/A ImportError N/A django.contrib.auth.models User django.http HttpResponse django.shortcuts render_to_response django.template loader Context N/A simplejson django.views.decorators.csrf csrf_exempt N/A N/A django.utils timezone N/A N/A N/A ImportError N/A datetime datetime timezone helpdesk.forms TicketForm helpdesk.lib send_templated_mail safe_template_context helpdesk.models Ticket Queue FollowUp N/A warnings N/A STATUS_OK 200 N/A STATUS_ERROR 400 N/A STATUS_ERROR_NOT_FOUND 404 N/A STATUS_ERROR_PERMISSIONS 403 N/A STATUS_ERROR_BADMETHOD 405 api N/A N/A request method N/A N/A N/A 
    Regardless of any other paramaters, we provide a help screen
    to the user if they requested one.

    If the user isn't looking for help, then we enforce a few conditions:
        * The request must be sent via HTTP POST
        * The request must contain a 'user' and 'password' which
          must be valid users
        * The method must match one of the public methods of the API class.


    THIS IS DEPRECATED AS OF DECEMBER 2015 AND WILL BE REMOVED IN JANUARY 2016.
    SEE https://github.com/rossp/django-helpdesk/issues/198 FOR DETAILS

     N/A N/A N/A warnings warn django-helpdesk API will be removed in January 2016. See https://github.com/rossp/django-helpdesk/issues/198 for details. category DeprecationWarning N/A N/A method help N/A N/A N/A render_to_response helpdesk/help_api.html N/A N/A N/A request method POST N/A N/A N/A api_return STATUS_ERROR_BADMETHOD N/A N/A request user N/A authenticate username N/A N/A N/A request POST get user False password N/A N/A N/A request POST get password N/A N/A N/A request user None N/A N/A N/A api_return STATUS_ERROR_PERMISSIONS N/A api N/A API request N/A N/A hasattr api N/A api_public_%s method N/A N/A N/A N/A getattr api N/A api_public_%s method N/A N/A api_return STATUS_ERROR N/A csrf_exempt api_return N/A N/A status text json N/A False N/A N/A content_type text/plain N/A N/A N/A status STATUS_OK json N/A N/A content_type text/json N/A N/A text None N/A N/A N/A status STATUS_ERROR N/A N/A text Error N/A N/A N/A status STATUS_ERROR_NOT_FOUND N/A N/A text Resource Not Found N/A N/A N/A status STATUS_ERROR_PERMISSIONS N/A N/A text Invalid username or password N/A N/A N/A status STATUS_ERROR_BADMETHOD N/A N/A text Invalid request method N/A N/A N/A status STATUS_OK N/A N/A text OK N/A r N/A HttpResponse status status content text content_type content_type N/A N/A status STATUS_ERROR_BADMETHOD N/A N/A N/A r Allow POST N/A r N/A API N/A N/A __init__ N/A N/A self request N/A N/A N/A N/A self request request N/A api_public_create_ticket N/A N/A self N/A N/A N/A form N/A TicketForm N/A N/A self request POST N/A N/A N/A N/A form fields N/A queue choices N/A N/A N/A q id N/A q title N/A q N/A N/A N/A Queue objects all N/A N/A N/A N/A form fields N/A assigned_to choices N/A N/A N/A u id N/A N/A u get_username N/A u N/A N/A N/A User objects filter is_active True N/A N/A N/A form is_valid N/A N/A ticket N/A N/A form save user N/A N/A self request user N/A N/A api_return STATUS_OK N/A %s N/A ticket id N/A N/A N/A api_return STATUS_ERROR text N/A N/A N/A form errors as_text N/A api_public_list_queues N/A N/A self N/A N/A N/A N/A api_return STATUS_OK N/A N/A simplejson dumps N/A N/A id title N/A %s N/A q id N/A %s N/A q title N/A q N/A N/A N/A Queue objects all json True N/A api_public_find_user N/A N/A self N/A N/A N/A username N/A N/A N/A N/A self request POST get username False N/A N/A N/A u N/A N/A N/A User objects get username username N/A N/A api_return STATUS_OK N/A %s N/A u id N/A N/A N/A N/A User DoesNotExist N/A N/A N/A api_return STATUS_ERROR Invalid username provided N/A api_public_delete_ticket N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self request POST get confirm False N/A N/A N/A api_return STATUS_ERROR No confirmation provided N/A N/A N/A ticket N/A N/A N/A Ticket objects get id N/A N/A N/A N/A self request POST get ticket False N/A N/A N/A N/A Ticket DoesNotExist N/A N/A N/A api_return STATUS_ERROR Invalid ticket ID N/A N/A N/A ticket delete N/A N/A api_return STATUS_OK N/A api_public_hold_ticket N/A N/A self N/A N/A N/A N/A N/A ticket N/A N/A N/A Ticket objects get id N/A N/A N/A N/A self request POST get ticket False N/A N/A N/A N/A Ticket DoesNotExist N/A N/A N/A api_return STATUS_ERROR Invalid ticket ID N/A N/A ticket on_hold True N/A N/A N/A ticket save N/A N/A api_return STATUS_OK N/A api_public_unhold_ticket N/A N/A self N/A N/A N/A N/A N/A ticket N/A N/A N/A Ticket objects get id N/A N/A N/A N/A self request POST get ticket False N/A N/A N/A N/A Ticket DoesNotExist N/A N/A N/A api_return STATUS_ERROR Invalid ticket ID N/A N/A ticket on_hold False N/A N/A N/A ticket save N/A N/A api_return STATUS_OK N/A api_public_add_followup N/A N/A self N/A N/A N/A N/A N/A ticket N/A N/A N/A Ticket objects get id N/A N/A N/A N/A self request POST get ticket False N/A N/A N/A N/A Ticket DoesNotExist N/A N/A N/A api_return STATUS_ERROR Invalid ticket ID N/A message N/A N/A N/A N/A self request POST get message None N/A public N/A N/A N/A N/A self request POST get public n N/A N/A public N/A y n N/A N/A N/A api_return STATUS_ERROR Invalid 'public' flag N/A N/A message N/A N/A N/A api_return STATUS_ERROR Blank message N/A f N/A FollowUp ticket ticket date N/A N/A timezone now comment message user N/A N/A self request user title Comment Added N/A public N/A N/A N/A f public True N/A N/A N/A f save N/A context N/A safe_template_context ticket N/A N/A context N/A comment N/A f comment N/A messages_sent_to N/A N/A N/A public N/A ticket submitter_email N/A N/A N/A send_templated_mail updated_submitter context recipients N/A ticket submitter_email sender N/A N/A ticket queue from_address fail_silently True N/A N/A N/A messages_sent_to append N/A ticket submitter_email N/A public N/A N/A cc N/A N/A N/A ticket ticketcc_set all N/A N/A N/A N/A cc email_address messages_sent_to N/A N/A N/A send_templated_mail updated_submitter context recipients N/A cc email_address sender N/A N/A ticket queue from_address fail_silently True N/A N/A N/A messages_sent_to append N/A cc email_address N/A N/A N/A N/A ticket queue updated_ticket_cc N/A N/A N/A ticket queue updated_ticket_cc messages_sent_to N/A N/A N/A send_templated_mail updated_cc context recipients N/A N/A ticket queue updated_ticket_cc sender N/A N/A ticket queue from_address fail_silently True N/A N/A N/A messages_sent_to append N/A N/A ticket queue updated_ticket_cc N/A N/A N/A ticket assigned_to N/A N/A N/A self request user N/A ticket assigned_to N/A N/A N/A N/A N/A ticket assigned_to usersettings settings get email_on_ticket_apichange False N/A N/A ticket assigned_to email N/A N/A N/A ticket assigned_to email messages_sent_to N/A N/A N/A send_templated_mail updated_owner context recipients N/A N/A ticket assigned_to email sender N/A N/A ticket queue from_address fail_silently True N/A N/A N/A ticket save N/A N/A api_return STATUS_OK N/A api_public_resolve N/A N/A self N/A N/A N/A N/A N/A ticket N/A N/A N/A Ticket objects get id N/A N/A N/A N/A self request POST get ticket False N/A N/A N/A N/A Ticket DoesNotExist N/A N/A N/A api_return STATUS_ERROR Invalid ticket ID N/A resolution N/A N/A N/A N/A self request POST get resolution None N/A N/A resolution N/A N/A N/A api_return STATUS_ERROR Blank resolution N/A f N/A FollowUp ticket ticket date N/A N/A timezone now comment resolution user N/A N/A self request user title Resolved public True N/A N/A N/A f save N/A context N/A safe_template_context ticket N/A N/A context N/A resolution N/A f comment N/A subject N/A %s %s (Resolved) N/A N/A ticket ticket N/A ticket title N/A messages_sent_to N/A N/A N/A ticket submitter_email N/A N/A N/A send_templated_mail resolved_submitter context recipients N/A ticket submitter_email sender N/A N/A ticket queue from_address fail_silently True N/A N/A N/A messages_sent_to append N/A ticket submitter_email N/A cc N/A N/A N/A ticket ticketcc_set all N/A N/A N/A N/A cc email_address messages_sent_to N/A N/A N/A send_templated_mail resolved_submitter context recipients N/A cc email_address sender N/A N/A ticket queue from_address fail_silently True N/A N/A N/A messages_sent_to append N/A cc email_address N/A N/A N/A N/A ticket queue updated_ticket_cc N/A N/A N/A ticket queue updated_ticket_cc messages_sent_to N/A N/A N/A send_templated_mail resolved_cc context recipients N/A N/A ticket queue updated_ticket_cc sender N/A N/A ticket queue from_address fail_silently True N/A N/A N/A messages_sent_to append N/A N/A ticket queue updated_ticket_cc N/A N/A N/A ticket assigned_to N/A N/A N/A self request user N/A ticket assigned_to N/A getattr N/A N/A N/A ticket assigned_to usersettings settings email_on_ticket_apichange False N/A N/A ticket assigned_to email N/A N/A N/A ticket assigned_to email messages_sent_to N/A N/A N/A send_templated_mail resolved_resolved context recipients N/A N/A ticket assigned_to email sender N/A N/A ticket queue from_address fail_silently True N/A N/A ticket resoltuion N/A f comment N/A N/A ticket status N/A Ticket RESOLVED_STATUS N/A N/A N/A ticket save N/A N/A api_return STATUS_OK N/A N/A