Skip to content

Commit

Permalink
connection versions are no longer supported in ZODB 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Jul 11, 2009
1 parent 77a936e commit a579157
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changelog
1.0a2 (unreleased)
------------------

- Don't break when checking the connection version in ZODB>=3.9.

- Fixed tests to not use the DemoStorage quota parameter which was
removed.

Expand Down
8 changes: 5 additions & 3 deletions Products/ZopeVersionControl/Utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
import os
import time

from AccessControl import ClassSecurityInfo
from AccessControl import getSecurityManager
from App.Common import package_home
from DateTime import DateTime
from App.class_init import default__class_init__ as InitializeClass
from Persistence import Persistent
from ZODB.TimeStamp import TimeStamp
Expand Down Expand Up @@ -130,7 +128,11 @@ def _findModificationTime(object):
latest = mtime
conn = object._p_jar
load = conn._storage.load
version = conn._version
try:
version = conn._version
except AttributeError:
# ZODB 3.9+ compatibility
version = None
refs = referencesf

oids=[object._p_oid]
Expand Down

0 comments on commit a579157

Please sign in to comment.