Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Merge in fix from 22 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Jun 23, 2000
1 parent 21c983d commit ce13711
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Version.py
Expand Up @@ -84,7 +84,7 @@
##############################################################################
"""Version object"""

__version__='$Revision: 1.41 $'[11:-2]
__version__='$Revision: 1.42 $'[11:-2]

import Globals, time
from AccessControl.Role import RoleManager
Expand Down Expand Up @@ -246,7 +246,12 @@ def nonempty(self):
else:
# ZODB 3
return not db.versionEmpty(self.cookie)

# Prevent copy/move/rename of versions. It's better that way, really.

def _canCopy(self, op=0):
return 0

def manage_afterClone(self, item):
self.cookie=''

Expand Down

0 comments on commit ce13711

Please sign in to comment.