| 1 | # (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) |
|---|
| 2 | # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php |
|---|
| 3 | """ |
|---|
| 4 | This module contains default sysconfig settings. |
|---|
| 5 | |
|---|
| 6 | The command object is inserted into this module as a global variable |
|---|
| 7 | ``paste_command``, and can be used inside functions. |
|---|
| 8 | """ |
|---|
| 9 | |
|---|
| 10 | def add_custom_options(parser): |
|---|
| 11 | """ |
|---|
| 12 | This method can modify the ``parser`` object (which is an |
|---|
| 13 | ``optparse.OptionParser`` instance). This can be used to add new |
|---|
| 14 | options to the command. |
|---|
| 15 | """ |
|---|
| 16 | pass |
|---|
| 17 | |
|---|
| 18 | def default_config_filename(installer): |
|---|
| 19 | """ |
|---|
| 20 | This function can return a default filename or directory for the |
|---|
| 21 | configuration file, if none was explicitly given. |
|---|
| 22 | |
|---|
| 23 | Return None to mean no preference. The first non-None returning |
|---|
| 24 | value will be used. |
|---|
| 25 | |
|---|
| 26 | Pay attention to ``installer.expect_config_directory`` here, |
|---|
| 27 | and to ``installer.default_config_filename``. |
|---|
| 28 | """ |
|---|
| 29 | return installer.default_config_filename |
|---|
| 30 | |
|---|
| 31 | def install_variables(installer): |
|---|
| 32 | """ |
|---|
| 33 | Returns a dictionary of variables for use later in the process |
|---|
| 34 | (e.g., filling a configuration file). These are combined from all |
|---|
| 35 | sysconfig files. |
|---|
| 36 | """ |
|---|
| 37 | return {} |
|---|
| 38 | |
|---|
| 39 | def post_setup_hook(installer, config_file): |
|---|
| 40 | """ |
|---|
| 41 | This is called at the very end of ``paster setup-app``. You |
|---|
| 42 | might use it to register an application globally. |
|---|
| 43 | """ |
|---|
| 44 | pass |
|---|