Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
e6fa0f1e
Commit
e6fa0f1e
authored
Mar 11, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
b19e708d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
16 deletions
+21
-16
lib/python/webdav/Resource.py
lib/python/webdav/Resource.py
+1
-13
lib/python/webdav/__init__.py
lib/python/webdav/__init__.py
+20
-3
No files found.
lib/python/webdav/Resource.py
View file @
e6fa0f1e
...
...
@@ -85,24 +85,12 @@
"""WebDAV support - resource objects."""
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
mimetypes
,
davcmds
from
common
import
absattr
,
aq_base
,
urlfix
,
rfc1123_date
import
exceptions
class
error
(
exceptions
.
Exception
):
def
__init__
(
self
,
msg
):
self
.
msg
=
msg
html
=
'<html>
\
n
<head>
\
n
<title></title>
\
n
</head>
\
n
<body>
\
n
'
\
'%s
\
n
</body></html>'
def
__str__
(
self
,
fmt
=
html
):
return
fmt
%
self
.
msg
class
Resource
:
"""The Resource mixin class provides basic WebDAV support for
non-collection objects. It provides default implementations
...
...
lib/python/webdav/__init__.py
View file @
e6fa0f1e
...
...
@@ -83,11 +83,28 @@
#
##############################################################################
"""The webdav package provides WebDAV class 1 functionality within
the Zope environment. Based on:
"""The webdav package provides WebDAV capability for common Zope objects.
Current WebDAV support in Zope provides for the correct handling of HTTP
GET, HEAD, POST, PUT, DELETE, OPTIONS, TRACE, PROPFIND, PROPPATCH, MKCOL,
COPY and MOVE methods, as appropriate for the object that is the target
of the operation. Objects which do not support a given operation should
respond appropriately with a "405 Method Not Allowed" response.
Note that the ability of a Zope installation to support WebDAV HTTP methods
depends on the willingness of the web server to defer handling of those
methods to the Zope process. In most cases, servers will allow the process
to handle any request, so the Zope portion of your url namespace may well
be able to handle WebDAV operations even though your web server software
is not WebDAV-aware itself. Zope installations which use bundled server
implementations such as ZopeHTTPServer or ZServer should fully support
WebDAV functions.
References:
[WebDAV] Y. Y. Goland, E. J. Whitehead, Jr., A. Faizi, S. R. Carter, D.
Jensen, "HTTP Extensions for Distributed Authoring - WebDAV." RFC 2518.
Microsoft, U.C. Irvine, Netscape, Novell. February, 1999."""
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment