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
7486f9f5
Commit
7486f9f5
authored
Dec 16, 2002
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge from 2.6 branch (collector #700).
parent
611e5817
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
lib/python/OFS/History.py
lib/python/OFS/History.py
+7
-4
No files found.
lib/python/OFS/History.py
View file @
7486f9f5
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Object Histories"""
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
import
Globals
,
ExtensionClass
,
difflib
from
DateTime
import
DateTime
...
...
@@ -36,7 +36,7 @@ class HystoryJar:
def
commit
(
self
,
object
,
transaction
):
if
object
.
_p_changed
:
raise
TemporalParadox
,
"You can't change history!"
raise
TemporalParadox
,
"You can
\
'
t change history!"
def
abort
(
*
args
,
**
kw
):
pass
...
...
@@ -53,7 +53,7 @@ def historicalRevision(self, serial):
return
rev
class
Historian
(
Implicit
):
"""An Historian's job is to find hysterical revisions of
"""An Historian
\
'
s job is to find hysterical revisions of
objects, given a time."""
def
__getitem__
(
self
,
key
):
...
...
@@ -68,7 +68,7 @@ class Historian(Implicit):
return
rev
.
__of__
(
self
.
aq_parent
)
def
manage_workspace
(
self
,
REQUEST
):
"We aren't real, so we delegate to that that spawned us!"
"We aren
\
'
t real, so we delegate to that that spawned us!"
raise
'Redirect'
,
REQUEST
[
'URL2'
]
+
'/manage_change_history_page'
class
Historical
(
ExtensionClass
.
Base
):
...
...
@@ -113,6 +113,9 @@ class Historical(ExtensionClass.Base):
r
=
self
.
_p_jar
.
db
().
history
(
self
.
_p_oid
,
None
,
last
)
if
r
is
None
:
# storage doesn't support history
return
()
r
=
r
[
first
:]
for
d
in
r
:
...
...
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