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
8c4695a1
Commit
8c4695a1
authored
Jul 28, 2005
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
16295cdc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/webdav/davcmds.py
lib/python/webdav/davcmds.py
+6
-5
No files found.
doc/CHANGES.txt
View file @
8c4695a1
...
@@ -53,6 +53,8 @@ Zope Changes
...
@@ -53,6 +53,8 @@ Zope Changes
Bugs fixed
Bugs fixed
- Collector #1852: fixed wrong URL construction in webdav.davcmds
- Collector #1844: fixed whitespace handling in the ZMI "Find" tab
- Collector #1844: fixed whitespace handling in the ZMI "Find" tab
- Collector #1815: ZCTextIndex accepts (again) sequences of strings to
- Collector #1815: ZCTextIndex accepts (again) sequences of strings to
...
...
lib/python/webdav/davcmds.py
View file @
8c4695a1
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
$Id$
$Id$
"""
"""
import
sys
,
os
import
sys
from
common
import
absattr
,
aq_base
,
urlfix
,
urlbase
from
common
import
absattr
,
aq_base
,
urlfix
,
urlbase
from
OFS.PropertySheets
import
DAVProperties
from
OFS.PropertySheets
import
DAVProperties
from
LockItem
import
LockItem
from
LockItem
import
LockItem
...
@@ -29,6 +29,7 @@ from AccessControl import getSecurityManager
...
@@ -29,6 +29,7 @@ from AccessControl import getSecurityManager
from
zExceptions
import
BadRequest
,
Forbidden
from
zExceptions
import
BadRequest
,
Forbidden
from
common
import
isDavCollection
from
common
import
isDavCollection
from
common
import
PreconditionFailed
from
common
import
PreconditionFailed
from
ZConfig.url
import
urljoin
import
transaction
import
transaction
def
safe_quote
(
url
,
mark
=
r'%'
):
def
safe_quote
(
url
,
mark
=
r'%'
):
...
@@ -162,7 +163,7 @@ class PropFind:
...
@@ -162,7 +163,7 @@ class PropFind:
if
dflag
:
if
dflag
:
ob
.
_p_deactivate
()
ob
.
_p_deactivate
()
elif
hasattr
(
ob
,
'__dav_resource__'
):
elif
hasattr
(
ob
,
'__dav_resource__'
):
uri
=
os
.
path
.
join
(
url
,
absattr
(
ob
.
id
))
uri
=
url
join
(
url
,
absattr
(
ob
.
id
))
depth
=
depth
==
'infinity'
and
depth
or
0
depth
=
depth
==
'infinity'
and
depth
or
0
self
.
apply
(
ob
,
uri
,
depth
,
result
,
top
=
0
)
self
.
apply
(
ob
,
uri
,
depth
,
result
,
top
=
0
)
if
dflag
:
if
dflag
:
...
@@ -402,7 +403,7 @@ class Lock:
...
@@ -402,7 +403,7 @@ class Lock:
if
depth
==
'infinity'
and
iscol
:
if
depth
==
'infinity'
and
iscol
:
for
ob
in
obj
.
objectValues
():
for
ob
in
obj
.
objectValues
():
if
hasattr
(
obj
,
'__dav_resource__'
):
if
hasattr
(
obj
,
'__dav_resource__'
):
uri
=
os
.
path
.
join
(
url
,
absattr
(
ob
.
id
))
uri
=
url
join
(
url
,
absattr
(
ob
.
id
))
self
.
apply
(
ob
,
creator
,
depth
,
token
,
result
,
self
.
apply
(
ob
,
creator
,
depth
,
token
,
result
,
uri
,
top
=
0
)
uri
,
top
=
0
)
if
not
top
:
if
not
top
:
...
@@ -465,7 +466,7 @@ class Unlock:
...
@@ -465,7 +466,7 @@ class Unlock:
for
ob
in
obj
.
objectValues
():
for
ob
in
obj
.
objectValues
():
if
hasattr
(
ob
,
'__dav_resource__'
)
and
\
if
hasattr
(
ob
,
'__dav_resource__'
)
and
\
WriteLockInterface
.
isImplementedBy
(
ob
):
WriteLockInterface
.
isImplementedBy
(
ob
):
uri
=
os
.
path
.
join
(
url
,
absattr
(
ob
.
id
))
uri
=
url
join
(
url
,
absattr
(
ob
.
id
))
self
.
apply
(
ob
,
token
,
uri
,
result
,
top
=
0
)
self
.
apply
(
ob
,
token
,
uri
,
result
,
top
=
0
)
if
not
top
:
if
not
top
:
return
result
return
result
...
@@ -519,7 +520,7 @@ class DeleteCollection:
...
@@ -519,7 +520,7 @@ class DeleteCollection:
for
ob
in
obj
.
objectValues
():
for
ob
in
obj
.
objectValues
():
dflag
=
hasattr
(
ob
,
'_p_changed'
)
and
(
ob
.
_p_changed
==
None
)
dflag
=
hasattr
(
ob
,
'_p_changed'
)
and
(
ob
.
_p_changed
==
None
)
if
hasattr
(
ob
,
'__dav_resource__'
):
if
hasattr
(
ob
,
'__dav_resource__'
):
uri
=
os
.
path
.
join
(
url
,
absattr
(
ob
.
id
))
uri
=
url
join
(
url
,
absattr
(
ob
.
id
))
self
.
apply
(
ob
,
token
,
user
,
uri
,
result
,
top
=
0
)
self
.
apply
(
ob
,
token
,
user
,
uri
,
result
,
top
=
0
)
if
dflag
:
if
dflag
:
ob
.
_p_deactivate
()
ob
.
_p_deactivate
()
...
...
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