Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Str keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad BinOpMod Str NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr keyword NameLoad attr attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Return Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A Views for applications. django.views.generic CreateView TemplateView django.core.urlresolvers reverse django.contrib messages django.http HttpResponseRedirect django.utils.html strip_tags django.utils.safestring mark_safe braces.views LoginRequiredMixin oauth2_provider.models AccessToken geokey.core.decorators handle_exceptions_for_admin forms AppCreateForm models Application ApplicationOverview N/A LoginRequiredMixin TemplateView N/A N/A 
    Displays an overview of all apps a developer has registered
    `/admin/apps/`
     N/A template_name applications/application_overview.html get_context_data N/A N/A self N/A kwargs N/A N/A 
        Returns the context to render the view. Overwrites the method to add
        the user's applications to the context.

        Returns
        -------
        dict
            context
         N/A context N/A N/A N/A super ApplicationOverview self get_context_data kwargs N/A N/A context N/A apps N/A N/A N/A Application objects get_list N/A N/A self request user N/A context N/A handle_exceptions_for_admin N/A ApplicationConnected N/A LoginRequiredMixin TemplateView N/A N/A 
    Displays an overview of all apps a user has connected
    `/admin/apps/connected`
     N/A template_name applications/application_connected.html get_context_data N/A N/A self N/A kwargs N/A N/A 
        Returns the context to render the view. Overwrites the method to add
        all connected applications to the context.

        Parameters
        ----------
        app_id : int
            ID identifying the the app in the database.

        Returns
        -------
        dict
            context
         N/A tokens N/A N/A N/A N/A N/A AccessToken objects filter user N/A N/A self request user distinct application N/A apps N/A N/A token application N/A token tokens N/A N/A N/A N/A super ApplicationConnected self get_context_data connected_apps apps kwargs N/A handle_exceptions_for_admin N/A ApplicationDisconnect N/A LoginRequiredMixin TemplateView N/A N/A 
    Disconnect an app
    `/admin/apps/:app_id/disconnect`
     N/A template_name base.html get N/A N/A self request app_id N/A N/A N/A 
        Handles the get request of the view. It disconnects the application
        by deleting all AccessTokens registered for the app and users.

        Parameters
        ----------
        request : django.http.HttpRequest
            Object representing the request.
        app_id : int
            ID identifying the the app in the database.

        Returns
        -------
        django.http.HttpResponseRedirect
            redirecting to connected apps overview.
         N/A app N/A N/A N/A Application objects get pk app_id N/A tokens N/A N/A N/A AccessToken objects filter user N/A N/A self request user application app N/A tokens N/A N/A N/A N/A tokens delete N/A N/A N/A messages success N/A self request The connection has been deleted. N/A url N/A reverse admin:app_connected N/A N/A HttpResponseRedirect url N/A N/A ApplicationCreate N/A LoginRequiredMixin CreateView N/A N/A 
    Displays the Create Application page.
    `/admin/apps/register`
     N/A form_class AppCreateForm N/A template_name applications/application_create.html get_success_url N/A N/A self N/A N/A N/A 
        Returns the redirect url to be called after successful app registering
         N/A N/A reverse admin:app_settings kwargs N/A app_id N/A N/A self object id N/A form_valid N/A N/A self form N/A N/A N/A 
        Overwrites CreateView method to add the user to the form instance

        Parameters
        ----------
        form : geokey.applications.forms.AppCreateForm
            Represents the user input
         N/A N/A N/A form instance user N/A N/A self request user N/A add_another_url N/A reverse admin:app_register N/A N/A N/A messages success N/A self request N/A mark_safe N/A The application has been created. <a href="%s">Add another application.</a> add_another_url N/A N/A N/A N/A super ApplicationCreate self form_valid form N/A N/A ApplicationSettings N/A LoginRequiredMixin TemplateView N/A N/A 
    Displays the Application Settings page.
    `/admin/apps/settings`
     N/A template_name applications/application_settings.html get_context_data N/A N/A self app_id N/A kwargs N/A N/A 
        Returns the context to render the view. Overwrites the method to add
        the application to the context.

        Parameters
        ----------
        app_id : int
            ID identifying the the app in the database.

        Returns
        -------
        dict
            context
         N/A app N/A N/A N/A Application objects as_owner N/A N/A self request user app_id N/A users N/A N/A N/A N/A N/A N/A N/A N/A N/A AccessToken objects values user filter application app distinct count N/A N/A N/A N/A super ApplicationSettings self get_context_data application app users users kwargs N/A handle_exceptions_for_admin post N/A N/A self request app_id N/A N/A N/A 
        Handles the POST request and updates the application

        Parameters
        ----------
        request : django.http.HttpRequest
            Object representing the request.
        app_id : int
            ID identifying the the app in the database.

        Returns
        -------
        django.http.HttpResponse
            Rendered template
         N/A context N/A N/A self get_context_data app_id N/A app N/A N/A context pop application None N/A N/A app None N/A N/A data N/A request POST N/A N/A app name N/A strip_tags N/A N/A data get name N/A N/A app description N/A strip_tags N/A N/A data get description N/A N/A app download_url N/A N/A data get download_url N/A N/A app redirect_uris N/A N/A data get redirect_uris N/A N/A app authorization_grant_type N/A N/A data get authorization_grant_type N/A N/A N/A app save N/A N/A N/A messages success N/A self request The application has been updated. N/A N/A context N/A application app N/A N/A N/A self render_to_response context N/A N/A ApplicationDelete N/A LoginRequiredMixin TemplateView N/A N/A 
    Deletes an app
    `/admin/apps/:app_id/delete`
     N/A template_name base.html get_context_data N/A N/A self app_id N/A kwargs N/A N/A 
        Returns the context to render the view. Overwrites the method to add
        the application to the context.

        Parameters
        ----------
        app_id : int
            ID identifying the the app in the database.

        Returns
        -------
        dict
            context
         N/A app N/A N/A N/A Application objects as_owner N/A N/A self request user app_id N/A N/A N/A N/A super ApplicationDelete self get_context_data application app kwargs N/A handle_exceptions_for_admin get N/A N/A self request app_id N/A N/A N/A 
        Handles the GET request and deletes the application

        Parameters
        ----------
        request : django.http.HttpRequest
            Object representing the request.
        app_id : int
            ID identifying the the app in the database.

        Returns
        -------
        django.http.HttpResponseRedirect
            redirecting to list of apps overview.

        django.http.HttpResponse
            If user is not owner of the app, the error message is rendered.
         N/A context N/A N/A self get_context_data app_id N/A app N/A N/A context pop application None N/A N/A app None N/A N/A N/A N/A app delete N/A N/A N/A messages success N/A self request The application has been deleted. N/A url N/A reverse admin:app_overview N/A N/A HttpResponseRedirect url N/A N/A N/A self render_to_response context N/A N/A