Module amplee.pastify
Helper to use amplee with Paste (http://pythonpaste.org/).
Synopsis
--------
The application configuration must have the following key:
* amplee_conf_path -- absolute path to an amplee config
file that can be loaded by the loader module.
In addition the application configuration may have:
* encoding -- set the encoding to be used by the amplee
loader. Defaults to ISO-8859-1.
* loader_base_path -- base path used by the loader to
resolve relative path used in the amplee config.
Defaults to None.
The returned application is a WSGI application that will
dispatch either to the service application or the
collection applications.
If you use this module you must ensure that your amplee
configuration file has a path_info key for each collection
and for the service section.
############################################
# Entry point example
############################################
[composite:main]
use = egg:Paste#urlmap
/ = amplee_atompp
[app:amplee_atompp]
use = egg:amplee
amplee_conf_path = %(here)s/store.conf
loader_base_path = %(here)s
[server:main]
use = egg:Paste#http
port = 8080
# Change to 0.0.0.0 to make public:
host = 127.0.0.1
| Function Summary |
| |
make_app(global_conf,
**app_conf)
|