diff options
| author | Alex Gr?nholm <alex.gronholm@nextday.fi> | 2011-05-17 03:17:44 +0300 |
|---|---|---|
| committer | Alex Gr?nholm <alex.gronholm@nextday.fi> | 2011-05-17 03:17:44 +0300 |
| commit | 1133cba301b8bc90507b9f98d4d71d45dcaa53d6 (patch) | |
| tree | f5e5488d25daaa2f519165c470888ebe3e0c1ace /paste/deploy/interfaces.py | |
| parent | 93822ede9b74c40d170644fb2417b7a7d40dbb3e (diff) | |
| download | pastedeploy-1133cba301b8bc90507b9f98d4d71d45dcaa53d6.tar.gz | |
PEP 8 cleanups
Diffstat (limited to 'paste/deploy/interfaces.py')
| -rw-r--r-- | paste/deploy/interfaces.py | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/paste/deploy/interfaces.py b/paste/deploy/interfaces.py index 29163a5..3dbc44e 100644 --- a/paste/deploy/interfaces.py +++ b/paste/deploy/interfaces.py @@ -1,13 +1,15 @@ # (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php + ############################################################ ## Functions ############################################################ + def loadapp(uri, name=None, relative_to=None, global_conf=None): """ Provided by ``paste.deploy.loadapp``. - + Load the specified URI as a WSGI application (returning IWSGIApp). The ``name`` can be in the URI (typically as ``#name``). If it is and ``name`` is given, the keyword argument overrides the URI. @@ -19,6 +21,7 @@ def loadapp(uri, name=None, relative_to=None, global_conf=None): override the values). ``global_conf`` is copied before modifying. """ + def loadfilter(uri, name=None, relative_to=None, global_conf=None): """ Provided by ``paste.deploy.loadfilter``. @@ -26,6 +29,7 @@ def loadfilter(uri, name=None, relative_to=None, global_conf=None): Like ``loadapp()``, except returns in IFilter object. """ + def loadserver(uri, name=None, relative_to=None, global_conf=None): """ Provided by ``paste.deploy.loadserver``. @@ -33,10 +37,12 @@ def loadserver(uri, name=None, relative_to=None, global_conf=None): Like ``loadapp()``, except returns in IServer object. """ + ############################################################ ## Factories ############################################################ + class IPasteAppFactory(object): """ @@ -55,6 +61,7 @@ class IPasteAppFactory(object): capture these values). """ + class IPasteCompositFactory(object): """ @@ -73,6 +80,7 @@ class IPasteCompositFactory(object): applications. """ + class IPasteFilterFactory(object): """ @@ -85,13 +93,14 @@ class IPasteFilterFactory(object): Returns a IFilter object. """ + class IPasteFilterAppFactory(object): """ This is the spec for the ``paste.filter_app_factory`` protocol/entry_point. """ - + def __call__(wsgi_app, global_conf, **local_conf): """ Returns a WSGI application that wraps ``wsgi_app``. @@ -100,6 +109,7 @@ class IPasteFilterAppFactory(object): objects that implement the IFilter interface. """ + class IPasteServerFactory(object): """ @@ -112,6 +122,7 @@ class IPasteServerFactory(object): Returns a IServer object. """ + class IPasteServerRunner(object): """ @@ -129,6 +140,7 @@ class IPasteServerRunner(object): objects that implement the IServer interface. """ + class ILoader(object): """ @@ -151,16 +163,18 @@ class ILoader(object): """ Return an IFilter object, like ``get_app``. """ - + def get_server(name_or_uri, global_conf=None): """ Return an IServer object, like ``get_app``. """ + ############################################################ ## Objects ############################################################ + class IWSGIApp(object): """ @@ -175,6 +189,7 @@ class IWSGIApp(object): an iterator for the body of the response. """ + class IFilter(object): """ @@ -188,6 +203,7 @@ class IFilter(object): ``wsgi_app`` passed in. """ + class IServer(object): """ |
