The Installer class is accessible via the paste.script.appinstall module.
Packages that simply refer to this installer can provide a file *.egg-info/paste_deploy_config.ini_tmpl that will be interpreted by Cheetah. They can also provide websetup modules with a setup_app(command, conf, vars) (or the now-deprecated setup_config(command, filename, section, vars)) function, that will be called.
In the future other functions or configuration files may be called.
Writes the content to the filename (directory or single file). You should use the command object, which respects things like simulation and interactive. vars is a dictionary of user-provided variables.
Return a list of filenames; this is primarily used when the filename is treated as a directory and several configuration files are created. The default implementation returns the file itself. Return None if you don't know what files should be edited on installation.
Called by self.write_config, this returns the text content for the config file, given the provided variables.
The default implementation reads Package.egg-info/paste_deploy_config.ini_tmpl and fills it with the variables.
Subclasses may override this to provide different template substitution (e.g., use a different template engine).
Called to setup an application, given its configuration file/directory.
The default implementation calls package.websetup.setup_config(command, filename, section, vars) or package.websetup.setup_app(command, config, vars)
With setup_app the config object is a dictionary with the extra attributes global_conf, local_conf and filename
See the source for more information.