~ubuntu-branches/ubuntu/quantal/zodb/quantal

« back to all changes in this revision

Viewing changes to src/ZODB/Connection.py

  • Committer: Bazaar Package Importer
  • Author(s): Fabio Tranchitella, Brian Sutherland, Fabio Tranchitella
  • Date: 2010-01-05 22:22:35 UTC
  • mfrom: (6.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100105222235-z2xg4h60ru3e891t
Tags: 1:3.9.4-1
[ Brian Sutherland ]
* debian/tests/all: Test the correct python modules.

[ Fabio Tranchitella ]
* New upstream release.
* Convert to debhelper 7 and the pydeb dh7 extension.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
##############################################################################
14
14
"""Database connection support
15
15
 
16
 
$Id: Connection.py 103176 2009-08-24 18:17:56Z jim $"""
 
16
$Id: Connection.py 106502 2009-12-14 19:27:08Z jim $"""
17
17
 
18
18
import logging
19
19
import sys
341
341
        try:
342
342
            if self._txn_time is None:
343
343
                self._txn_time = tid
 
344
            elif tid < self._txn_time:
 
345
                raise AssertionError("invalidations out of order, %r < %r"
 
346
                                     % (tid, self._txn_time))
 
347
 
344
348
            self._invalidated.update(oids)
345
349
        finally:
346
350
            self._inv_lock.release()