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
09c54abf
Commit
09c54abf
authored
Oct 03, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get Prefix from ZopeUndo.
Also, sort imports alphabetically.
parent
0891974b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
21 deletions
+7
-21
lib/python/App/Undo.py
lib/python/App/Undo.py
+7
-21
No files found.
lib/python/App/Undo.py
View file @
09c54abf
...
...
@@ -10,15 +10,16 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
__doc__
=
'''short description
"""
$Id: Undo.py,v 1.32 2002/10/03 18:28:54 jeremy Exp $"""
__version__
=
'$Revision: 1.32 $'
[
11
:
-
2
]
$Id: Undo.py,v 1.31 2002/08/14 21:31:40 mj Exp $'''
__version__
=
'$Revision: 1.31 $'
[
11
:
-
2
]
import
base64
import
Globals
,
ExtensionClass
from
DateTime
import
DateTime
from
AccessControl
import
getSecurityManager
import
base64
from
DateTime
import
DateTime
import
Globals
,
ExtensionClass
from
ZopeUndo.Prefix
import
Prefix
class
UndoSupport
(
ExtensionClass
.
Base
):
...
...
@@ -127,21 +128,6 @@ class UndoSupport(ExtensionClass.Base):
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
...
...
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