The Resource mixin class provides basic WebDAV support for
non-collection objects. It provides default implementations
for most supported WebDAV HTTP methods, however certain methods
such as PUT should be overridden to ensure correct behavior in
the context of the object type.
Methods
|
|
|
|
COPY
|
COPY (
self,
REQUEST,
RESPONSE,
)
Create a duplicate of the source resource whose state
and behavior match that of the source resource as closely
as possible. Though we may later try to make a copy appear
seamless across namespaces (e.g. from Zope to Apache), COPY
is currently only supported within the Zope namespace.
Exceptions
|
|
'Bad Request'
'Conflict'
'Forbidden'
'Method Not Allowed'
'Precondition Failed'
'Unauthorized'
t
|
|
|
DELETE
|
DELETE (
self,
REQUEST,
RESPONSE,
)
Delete a resource. For non-collection resources, DELETE may
return either 200 or 204 (No Content) to indicate success.
|
|
HEAD
|
HEAD (
self,
REQUEST,
RESPONSE,
)
Retrieve resource information without a response body.
|
|
LOCK
|
LOCK (
self,
REQUEST,
RESPONSE,
)
Lock a resource
|
|
MKCOL
|
MKCOL (
self,
REQUEST,
RESPONSE,
)
Create a new collection resource. If called on an existing
resource, MKCOL must fail with 405 (Method Not Allowed).
|
|
MOVE
|
MOVE (
self,
REQUEST,
RESPONSE,
)
Move a resource to a new location. Though we may later try to
make a move appear seamless across namespaces (e.g. from Zope
to Apache), MOVE is currently only supported within the Zope
namespace.
Exceptions
|
|
'Bad Request'
'Conflict'
'Forbidden'
'Method Not Allowed'
'Precondition Failed'
t
|
|
|
OPTIONS
|
OPTIONS (
self,
REQUEST,
RESPONSE,
)
Retrieve communication options.
|
|
PROPFIND
|
PROPFIND (
self,
REQUEST,
RESPONSE,
)
Retrieve properties defined on the resource.
|
|
PROPPATCH
|
PROPPATCH (
self,
REQUEST,
RESPONSE,
)
Set and/or remove properties defined on the resource.
|
|
PUT
|
PUT (
self,
REQUEST,
RESPONSE,
)
Replace the GET response entity of an existing resource.
Because this is often object-dependent, objects which handle
PUT should override the default PUT implementation with an
object-specific implementation. By default, PUT requests
fail with a 405 (Method Not Allowed).
|
|
TRACE
|
TRACE (
self,
REQUEST,
RESPONSE,
)
Return the HTTP message received back to the client as the
entity-body of a 200 (OK) response. This will often usually
be intercepted by the web server in use. If not, the TRACE
request will fail with a 405 (Method Not Allowed), since it
is not often possible to reproduce the HTTP request verbatim
from within the Zope environment.
|
|
UNLOCK
|
UNLOCK (
self,
REQUEST,
RESPONSE,
)
Remove an existing lock on a resource.
|
|
dav__genlocktoken
|
dav__genlocktoken ( self )
|
|
dav__init
|
dav__init (
self,
request,
response,
)
|
|
dav__validate
|
dav__validate (
self,
object,
methodname,
REQUEST,
)
|
|