Commit 7486f9f5 authored by Chris McDonough's avatar Chris McDonough

Merge from 2.6 branch (collector #700).

parent 611e5817
......@@ -12,7 +12,7 @@
##############################################################################
"""Object Histories"""
__version__='$Revision: 1.15 $'[11:-2]
__version__='$Revision: 1.16 $'[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:
......
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