[Zope-Checkins] CVS: Zope/lib/python/App - Undo.py:1.31.6.1
Jeremy Hylton
jeremy@zope.com
Fri, 15 Nov 2002 12:47:43 -0500
Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv5414/lib/python/App
Modified Files:
Tag: Zope-2_6-branch
Undo.py
Log Message:
Merge from trunk: Get Prefix from ZopeUndo.
=== Zope/lib/python/App/Undo.py 1.31 => 1.31.6.1 ===
--- Zope/lib/python/App/Undo.py:1.31 Wed Aug 14 17:31:40 2002
+++ Zope/lib/python/App/Undo.py Fri Nov 15 12:47:43 2002
@@ -10,16 +10,17 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
-__doc__='''short description
-
-$Id$'''
+"""
+$Id$"""
__version__='$Revision$'[11:-2]
-import Globals, ExtensionClass
-from DateTime import DateTime
-from AccessControl import getSecurityManager
import base64
+from AccessControl import getSecurityManager
+from DateTime import DateTime
+import Globals, ExtensionClass
+from ZopeUndo.Prefix import Prefix
+
class UndoSupport(ExtensionClass.Base):
__ac_permissions__=(
@@ -126,21 +127,6 @@
return ''
Globals.default__class_init__(UndoSupport)
-
-
-class Prefix:
-
- __no_side_effects__=1
-
- def __init__(self, path):
- self.value = len(path), path
-
- def __cmp__(self, o):
- l,v = self.value
- rval = cmp(o[:l],v)
- return rval
-
-
########################################################################
# Blech, need this cause binascii.b2a_base64 is too pickly