Attention
You are looking at outdated documentation for version 1.x. A newer version is available.
5.5.3.4.3. wsgidav.server.run_server¶
5.5.3.4.3.1. run_server¶
Author: | Ho Chun Wei, fuzzybr80(at)gmail.com (author of original PyFileServer) |
---|---|
Author: | Martin Wendt, moogle(at)wwwendt.de |
Copyright: | Licensed under the MIT license, see LICENSE file in this package. |
Standalone server that runs WsgiDAV.
These tasks are performed:
- Set up the configuration from defaults, configuration file, and command line options.
- Instantiate the WsgiDAVApp object (which is a WSGI application)
- Start a WSGI server for this WsgiDAVApp object
Configuration is defined like this:
Get the name of a configuration file from command line option
--config-file=FILENAME
(or short-cFILENAME
). If this option is omitted, we usewsgidav.conf
in the current directory.Set reasonable default settings.
If configuration file exists: read and use it to overwrite defaults.
If command line options are passed, use them to override settings:
--host
option overrideshostname
setting.
--port
option overridesport
setting.
--root=FOLDER
option creates a FilesystemProvider that publishes FOLDER on the ‘/’ share.
Functions
isfunction (object) |
Return true if the object is a user-defined function. |
pprint (object[, stream, indent, width, depth]) |
Pretty-print a Python object to a stream [default is sys.stdout]. |
run () |
Classes
FilesystemProvider (rootFolderPath[, readonly]) |
|
OptionParser ([usage, option_list, …]) |
Class attributes: |
WsgiDAVApp (config) |