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
bce502ea
Commit
bce502ea
authored
Mar 08, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
e173a4ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
lib/python/webdav/Resource.py
lib/python/webdav/Resource.py
+8
-5
lib/python/webdav/client.py
lib/python/webdav/client.py
+2
-2
No files found.
lib/python/webdav/Resource.py
View file @
bce502ea
...
...
@@ -85,7 +85,7 @@
"""WebDAV support - resource objects."""
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
mimetypes
,
xmlcmds
from
common
import
absattr
,
aq_base
,
urlfix
,
rfc1123_date
...
...
@@ -138,10 +138,13 @@ class Resource:
# has the desired protection. This can be thought of as saying
# "I should have the same protection as the manage_xxx method".
msg
=
'<strong>You are not authorized to access this resource.</strong>'
if
not
hasattr
(
self
,
methodname
):
raise
'Unauthorized'
,
msg
method
=
getattr
(
self
,
methodname
)
if
hasattr
(
method
,
'__roles__'
):
method
=
None
if
hasattr
(
self
,
methodname
):
method
=
getattr
(
self
,
methodname
)
else
:
try
:
method
=
self
.
aq_acquire
(
methodname
)
except
:
method
=
None
if
(
method
is
not
None
)
and
hasattr
(
method
,
'__roles__'
):
roles
=
method
.
__roles__
user
=
REQUEST
.
get
(
'AUTHENTICATED_USER'
,
None
)
__traceback_info__
=
methodname
,
str
(
roles
),
user
...
...
lib/python/webdav/client.py
View file @
bce502ea
"""HTTP 1.1 / WebDAV client library."""
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
regex
,
time
,
types
import
socket
,
httplib
,
mimetools
...
...
@@ -375,7 +375,7 @@ funny="""<?xml version="1.0" encoding="utf-8"?>
<z:author>Brian Lloyd</z:author>
<z:color>blue</z:color>
<z:count>72</z:count>
<q:Authors q:type="authorthing" z:type="string" xmlns:k="FOO:">
<q:Authors q:type="authorthing" z:type="string" xmlns:k="FOO:"
xml:lang="en"
>
<q:Author>
<q:Person k:thing="Im a thing!">
<q:Name>Brian Lloyd</q:Name>
...
...
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