SetupCommand


Attributes

a default_interactive

1

a default_sysconfigs

[(False, '/home/ianb/.paste/config/sysconfig.py'),
 (False, '/etc/paste/sysconfig.py'),
 (False, '/usr/local/etc/paste/sysconfig.py'),
 (True, 'paste.script.default_sysconfig')]

a default_verbosity

1

a description

'    Note: this is an experimental command, and it will probably change\n    in several ways by the next release.\n\n    Setup an application according to its configuration file.  This is\n    the second part of a two-phase web application installation\n    process (the first phase is prepare-app).  The setup process may\n    consist of things like creating directories and setting up\n    databases.\n    '

a group_name

''

a hidden

False

a max_args

1

a max_args_error

'You must provide no more than %(max_args)s arguments'

a min_args

1

a min_args_error

'You must provide at least %(min_args)s arguments'

a parser

<paste.script.bool_optparse.BoolOptionParser instance at 0x8caa1ec>

a required_args

()

a return_code

0

a summary

'Setup an application, given a config file'

a takes_config_file

None

a usage

'CONFIG_FILE'

Methods

f run(self, args) ...

f standard_parser(cls, **kw) ...

f load_sysconfigs(self) ...

f __init__(self, name) ...

f get_sysconfig_option(self, name, default=None) ...

Return the value of the given option in the first sysconfig module in which it is found, or default (None) if not found in any.

f get_sysconfig_options(self, name) ...

Return the option value for the given name in all the sysconfig modules in which is is found ([] if none).

f call_sysconfig_function(self, name, *args, **kw) ...

Call the specified function in the first sysconfig module it is defined in. NameError if no function is found.

f call_sysconfig_functions(self, name, *args, **kw) ...

Call all the named functions in the sysconfig modules, returning a list of the return values.

f sysconfig_install_vars(self, installer) ...

Return the folded results of calling the install_variables() functions.

f get_distribution(self, req) ...

This gets a distribution object, and installs the distribution if required.

f get_installer(self, distro, ep_group, ep_name) ...

f command(self) ...

See the source for more information.