[Zope-Checkins] CVS: Zope/lib/python/OFS - DTMLMethod.py:1.79.4.5 History.py:1.14.4.1 Image.py:1.141.2.4 PropertyManager.py:1.46.4.6 PropertySheets.py:1.87.4.2 SimpleItem.py:1.102.4.7 Traversable.py:1.15.4.6

Chris McDonough chrism@zope.com
Sun, 24 Nov 2002 18:42:26 -0500


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv9640

Modified Files:
      Tag: chrism-install-branch
	DTMLMethod.py History.py Image.py PropertyManager.py 
	PropertySheets.py SimpleItem.py Traversable.py 
Log Message:
Merging with HEAD.


=== Zope/lib/python/OFS/DTMLMethod.py 1.79.4.4 => 1.79.4.5 ===


=== Zope/lib/python/OFS/History.py 1.14 => 1.14.4.1 ===
--- Zope/lib/python/OFS/History.py:1.14	Wed Aug 14 17:42:56 2002
+++ Zope/lib/python/OFS/History.py	Sun Nov 24 18:42:25 2002
@@ -36,7 +36,7 @@
 
     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 @@
     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 @@
         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):


=== Zope/lib/python/OFS/Image.py 1.141.2.3 => 1.141.2.4 ===
--- Zope/lib/python/OFS/Image.py:1.141.2.3	Sat Oct 26 15:51:40 2002
+++ Zope/lib/python/OFS/Image.py	Sun Nov 24 18:42:25 2002
@@ -323,7 +323,13 @@
                             # calculations allow us to fast-forward through the
                             # Pdata chain without a lot of dereferencing if we
                             # did the work already.
-                            closest_pos = start - (start % (1<<16))
+                            first_size = len(pdata_map[0].data)
+                            if start < first_size:
+                                closest_pos = 0
+                            else:
+                                closest_pos = (
+                                    ((start - first_size) >> 16 << 16) +
+                                    first_size)
                             pos = min(closest_pos, max(pdata_map.keys()))
                             data = pdata_map[pos]
 


=== Zope/lib/python/OFS/PropertyManager.py 1.46.4.5 => 1.46.4.6 ===


=== Zope/lib/python/OFS/PropertySheets.py 1.87.4.1 => 1.87.4.2 ===


=== Zope/lib/python/OFS/SimpleItem.py 1.102.4.6 => 1.102.4.7 ===


=== Zope/lib/python/OFS/Traversable.py 1.15.4.5 => 1.15.4.6 ===