![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | main_help_text |
def | fetch_command |
def | autocomplete |
def | execute |
Public Attributes | |
argv | |
prog_name | |
Encapsulates the logic of the django-admin.py and manage.py utilities. A ManagementUtility has a number of commands, which can be manipulated by editing the self.commands dictionary.
def google.appengine._internal.django.core.management.ManagementUtility.autocomplete | ( | self | ) |
Output completion suggestions for BASH. The output of this function is passed to BASH's `COMREPLY` variable and treated as completion suggestions. `COMREPLY` expects a space separated string as the result. The `COMP_WORDS` and `COMP_CWORD` BASH environment variables are used to get information about the cli input. Please refer to the BASH man-page for more information about this variables. Subcommand options are saved as pairs. A pair consists of the long option string (e.g. '--exclude') and a boolean value indicating if the option requires arguments. When printing to stdout, a equal sign is appended to options which require arguments. Note: If debugging this function, it is recommended to write the debug output in a separate file. Otherwise the debug output will be treated and formatted as potential completion suggestions.
def google.appengine._internal.django.core.management.ManagementUtility.execute | ( | self | ) |
Given the command-line arguments, this figures out which subcommand is being run, creates a parser appropriate to that command, and runs it.
def google.appengine._internal.django.core.management.ManagementUtility.fetch_command | ( | self, | |
subcommand | |||
) |
Tries to fetch the given subcommand, printing a message with the appropriate command called from the command line (usually "django-admin.py" or "manage.py") if it can't be found.
def google.appengine._internal.django.core.management.ManagementUtility.main_help_text | ( | self | ) |
Returns the script's main help text, as a string.