wsgidav.samples.dav_provider_tools.VirtualTextResource.create_empty_resource#

VirtualTextResource.create_empty_resource(name)#

Create and return an empty (length-0) resource as member of self.

Called for LOCK requests on unmapped URLs.

Preconditions (to be ensured by caller):

  • this must be a collection

  • <self.path + name> must not exist

  • there must be no conflicting locks

Returns a DAVResuource.

This method MUST be implemented by all providers that support write access. This default implementation simply raises HTTP_FORBIDDEN.