Commit 0f36c1a6 authored by Jeffrey Shell's avatar Jeffrey Shell

Fixed call of _nonempty() in manage_beforeDelete method to nonempty()

parent 8c324edf
...@@ -215,7 +215,7 @@ class Draft(Persistent, Implicit, SimpleItem.Item): ...@@ -215,7 +215,7 @@ class Draft(Persistent, Implicit, SimpleItem.Item):
self._version=self.absolute_url(1) self._version=self.absolute_url(1)
def manage_beforeDelete(self, item, container): def manage_beforeDelete(self, item, container):
if self._nonempty(): if self.nonempty():
raise 'Version Error', ( raise 'Version Error', (
'Attempt to %sdelete a non-empty version.<p>' 'Attempt to %sdelete a non-empty version.<p>'
((self is not item) and 'indirectly ' or '')) ((self is not item) and 'indirectly ' or ''))
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Version object""" """Version object"""
__version__='$Revision: 1.33 $'[11:-2] __version__='$Revision: 1.34 $'[11:-2]
import Globals, time import Globals, time
from AccessControl.Role import RoleManager from AccessControl.Role import RoleManager
...@@ -238,7 +238,7 @@ class Version(Persistent,Implicit,RoleManager,Item): ...@@ -238,7 +238,7 @@ class Version(Persistent,Implicit,RoleManager,Item):
self.cookie=self.absolute_url(1) self.cookie=self.absolute_url(1)
def manage_beforeDelete(self, item, container): def manage_beforeDelete(self, item, container):
if self._nonempty(): if self.nonempty():
raise 'Version Error', ( raise 'Version Error', (
'Attempt to %sdelete a non-empty version.<p>' 'Attempt to %sdelete a non-empty version.<p>'
((self is not item) and 'indirectly ' or '')) ((self is not item) and 'indirectly ' or ''))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment