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
0f36c1a6
Commit
0f36c1a6
authored
Jul 07, 1999
by
Jeffrey Shell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed call of _nonempty() in manage_beforeDelete method to nonempty()
parent
8c324edf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lib/python/Products/OFSP/Draft.py
lib/python/Products/OFSP/Draft.py
+1
-1
lib/python/Products/OFSP/Version.py
lib/python/Products/OFSP/Version.py
+2
-2
No files found.
lib/python/Products/OFSP/Draft.py
View file @
0f36c1a6
...
...
@@ -215,7 +215,7 @@ class Draft(Persistent, Implicit, SimpleItem.Item):
self
.
_version
=
self
.
absolute_url
(
1
)
def
manage_beforeDelete
(
self
,
item
,
container
):
if
self
.
_
nonempty
():
if
self
.
nonempty
():
raise
'Version Error'
,
(
'Attempt to %sdelete a non-empty version.<p>'
((
self
is
not
item
)
and
'indirectly '
or
''
))
...
...
lib/python/Products/OFSP/Version.py
View file @
0f36c1a6
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Version object"""
__version__
=
'$Revision: 1.3
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
4
$'
[
11
:
-
2
]
import
Globals
,
time
from
AccessControl.Role
import
RoleManager
...
...
@@ -238,7 +238,7 @@ class Version(Persistent,Implicit,RoleManager,Item):
self
.
cookie
=
self
.
absolute_url
(
1
)
def
manage_beforeDelete
(
self
,
item
,
container
):
if
self
.
_
nonempty
():
if
self
.
nonempty
():
raise
'Version Error'
,
(
'Attempt to %sdelete a non-empty version.<p>'
((
self
is
not
item
)
and
'indirectly '
or
''
))
...
...
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