adminlte2_pdq.management.commands package

Submodules

adminlte2_pdq.management.commands.showperms module

Command to list all permissions.

class adminlte2_pdq.management.commands.showperms.Command(stdout=None, stderr=None, no_color=False, force_color=False)

Bases: BaseCommand

Command to list out all project permissions.

DEFAULT_PERMS = ('add_', 'change_', 'delete_', 'view_')
add_arguments(parser)

Define arguments to pass into command.

handle(*args, **options)

Entry point of command logic.

help = 'List out all of the permissions in the database.'
process_header_str(include_names, include_codenames, include_content_types, include_has_perm_text, max_lengths)

Calculates header string and separator string values for nicer output.

adminlte2_pdq.management.commands.showroutes module

Command to list all URL routes in project.

class adminlte2_pdq.management.commands.showroutes.Command(stdout=None, stderr=None, no_color=False, force_color=False)

Bases: BaseCommand

Command to list out all URL routes.

add_arguments(parser)

Define arguments to pass into command.

handle(*args, **options)

Entry point of command logic.

help = 'List out all URL routes and their names'
process_header_str(include_app_names, include_url_names, include_lookup_str, include_default_args, max_lengths)

Calculates header string and separator string values for nicer output.

adminlte2_pdq.management.commands.showviews module

Command to list all URL routes in project.

class adminlte2_pdq.management.commands.showviews.Command(stdout=None, stderr=None, no_color=False, force_color=False)

Bases: BaseCommand

Command to list out all URL routes.

add_arguments(parser)

Define arguments to pass into command.

get_decorators(value)

Parses the decorators/mixins associated with provided view.

Original logic (for parsing decorators) from: https://stackoverflow.com/a/31197273

handle(*args, **options)

Entry point of command logic.

help = 'List out all URL routes and their names'
process_header_str(include_app_names, include_url_names, include_lookup_str, include_default_args, max_lengths)

Calculates header string and separator string values for nicer output.

Module contents