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
8a6cf5c1
Commit
8a6cf5c1
authored
May 07, 2003
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #905: Locked objects can no longer be renamed
parent
0be58301
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
doc/CHANGES.txt
doc/CHANGES.txt
+3
-3
lib/python/OFS/CopySupport.py
lib/python/OFS/CopySupport.py
+3
-1
No files found.
doc/CHANGES.txt
View file @
8a6cf5c1
...
...
@@ -80,9 +80,9 @@ Zope Changes
This restricts access to the Control_Panel and especially
to the Products management to trusted users.
-
Cut & Delete operations on locked objects (WebDAV) are no longer
permitted and will raise an exception. Copies of locked objects
are copied without lock.
-
Rename, Cut & Delete operations on locked objects (WebDAV) are
no longer permitted and will raise an exception. Copies of
locked objects
are copied without lock.
- Collector #634: Image objects can now be rendered without border
attribute by calling "image.tag(border='')".
...
...
lib/python/OFS/CopySupport.py
View file @
8a6cf5c1
...
...
@@ -11,7 +11,7 @@
#
##############################################################################
__doc__
=
"""Copy interface"""
__version__
=
'$Revision: 1.8
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.8
5
$'
[
11
:
-
2
]
import
sys
,
Globals
,
Moniker
,
tempfile
,
ExtensionClass
from
marshal
import
loads
,
dumps
...
...
@@ -237,6 +237,8 @@ class CopyContainer(ExtensionClass.Base):
message
=
sys
.
exc_info
()[
1
],
action
=
'manage_main'
)
ob
=
self
.
_getOb
(
id
)
if
ob
.
wl_isLocked
():
raise
ResourceLockedError
,
'Object "%s" is locked via WebDAV'
%
ob
.
getId
()
if
not
ob
.
cb_isMoveable
():
raise
CopyError
,
eNotSupported
%
id
self
.
_verifyObjectPaste
(
ob
)
...
...
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