Attention

You are looking at outdated documentation for version 2.x. A newer version is available.

wsgidav.dav_provider.DAVProvider

class wsgidav.dav_provider.DAVProvider[source]

Bases: object

Abstract base class for DAV resource providers.

There will be only one DAVProvider instance per share (not per request).

DAVProvider.customRequestHandler(environ, …) Optionally implement custom request handling.
DAVProvider.exists(path, environ) Return True, if path maps to an existing resource.
DAVProvider.getResourceInst(path, environ) Return a _DAVResource object for path.
DAVProvider.isCollection(path, environ) Return True, if path maps to an existing collection resource.
DAVProvider.isReadOnly()
DAVProvider.refUrlToPath(refUrl) Convert a refUrl to a path, by stripping the share prefix.
DAVProvider.setLockManager(lockManager)
DAVProvider.setMountPath(mountPath) Set application root for this resource provider.
DAVProvider.setPropManager(propManager)
DAVProvider.setSharePath(sharePath) Set application location for this resource provider.