[svn] / ZODB / branches / 3.8 / src / transaction / __init__.py Repository:
ViewVC logotype

Log of /ZODB/branches/3.8/src/transaction/__init__.py

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 113732 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 21 15:31:11 2010 UTC (4 years, 4 months ago) by ctheune
File length: 1019 byte(s)
Diff to previous 76620 , to selected 70066
Comply with repository policy.

Revision 76620 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 11 19:35:18 2007 UTC (7 years, 4 months ago) by jim
File length: 1020 byte(s)
Diff to previous 70066
release

Revision 70066 - (view) (download) (as text) (annotate) - [selected]
Modified Fri Sep 8 14:55:53 2006 UTC (8 years, 1 month ago) by jinty
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 1020 byte(s)
Diff to previous 39622
merge 70049:70059 from the jinty-doom branch.

These are the ZODB part of the patches I posted to
http://www.zope.org/Collectors/Zope3-dev/655 with an additional import cleanup.
The issue was silent for over 2 weeks.

Also my attempts at subscribing to zodb-dev or sending a message there
dissapeared were doomed;)

I'm fully willing to revert this if someone has an issue with it.

    ------------------------------------------------------------------------
    r70059 | jinty | 2006-09-08 16:26:44 +0200 (Fri, 08 Sep 2006) | 1 line

    Forgot the NEWS entry. Hope I did it right.
    ------------------------------------------------------------------------
    r70053 | jinty | 2006-09-08 14:43:26 +0200 (Fri, 08 Sep 2006) | 1 line

    Clean up wierd import dance with ZODB. This is unnecessary since the transaction module stopped being imported in ZODB/__init__.py in rev 39622.
    ------------------------------------------------------------------------
    r70051 | jinty | 2006-09-08 13:24:45 +0200 (Fri, 08 Sep 2006) | 1 line

    Add the ability to ask a transaction if it has been doomed i.e. isDoomed().
    ------------------------------------------------------------------------
    r70050 | jinty | 2006-09-08 13:13:06 +0200 (Fri, 08 Sep 2006) | 1 line

    Add the doom() function to transactions. Look at tests/doom.txt for more info.
    ------------------------------------------------------------------------



Revision 39622 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 25 21:19:33 2005 UTC (9 years ago) by tim_one
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 972 byte(s)
Diff to previous 30136 , to selected 70066
Remove a large pile of gimmicks that were officially
deprecated in ZODB 3.4.  This should be fun ;-)

Revision 30136 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Apr 24 05:13:15 2005 UTC (9 years, 6 months ago) by tim_one
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 1267 byte(s)
Diff to previous 29896 , to selected 70066
Merge Jim's savepoint/rollback work from the 3.4 branch.  Yay!

Original checkin msgs follow:

r30131 | jim | 2005-04-23 23:33:29 -0400 (Sat, 23 Apr 2005) | 5 lines
   M /ZODB/branches/3.4/src/ZODB/Connection.py
   M /ZODB/branches/3.4/src/ZODB/tests/testConnectionSavepoint.py

Fixed a bug in commits with savepoints and changes since savepoints.
Once we start using savepoints, we need to make sure that all data are
committed through the savepoints. Otherwise, things can get committed
in the wrong order, leading to conflicts.

r30130 | jim | 2005-04-23 23:02:00 -0400 (Sat, 23 Apr 2005) | 6 lines
   M /ZODB/branches/3.4/src/ZODB/Connection.py
   M /ZODB/branches/3.4/src/ZODB/tests/testConnectionSavepoint.py

Fixed a bug that caused assertion errors if an object was added in a
savepoint, then modified and then aborted.

Also added missing code to clear registered objects when a savepoint
was rolled back.

r30129 | jim | 2005-04-23 21:29:02 -0400 (Sat, 23 Apr 2005) | 5 lines
   M /ZODB/branches/3.4/src/ZODB/Connection.py
   D /ZODB/branches/3.4/src/ZODB/TmpStore.py
   M /ZODB/branches/3.4/src/ZODB/tests/testConnection.py
   A /ZODB/branches/3.4/src/ZODB/tests/testConnectionSavepoint.py
   A /ZODB/branches/3.4/src/ZODB/tests/testConnectionSavepoint.txt
   M /ZODB/branches/3.4/src/ZODB/tests/testZODB.py
   M /ZODB/branches/3.4/src/ZODB/tests/test_datamanageradapter.py
   M /ZODB/branches/3.4/src/transaction/__init__.py
   M /ZODB/branches/3.4/src/transaction/_manager.py
   M /ZODB/branches/3.4/src/transaction/_transaction.py
   M /ZODB/branches/3.4/src/transaction/interfaces.py
   A /ZODB/branches/3.4/src/transaction/savepoint.txt
   A /ZODB/branches/3.4/src/transaction/tests/savepointsample.py
   M /ZODB/branches/3.4/src/transaction/tests/test_register_compat.py
   A /ZODB/branches/3.4/src/transaction/tests/test_savepoint.py

Added savepoints!

(And also added interfaces and rearranged some code to hopefully make
it easier to read.)

r30128 | jim | 2005-04-23 21:28:59 -0400 (Sat, 23 Apr 2005) | 2 lines
   M /ZODB/branches/3.4/src/transaction/tests/test_transaction.py

Removed some tests that son't make sense after the savepoont refactoring

r30127 | jim | 2005-04-23 21:28:57 -0400 (Sat, 23 Apr 2005) | 2 lines
   M /ZODB/branches/3.4/src/persistent/interfaces.py

Commented out mtime

Revision 29896 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 7 04:48:06 2005 UTC (9 years, 6 months ago) by tim_one
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 1237 byte(s)
Diff to previous 29765 , to selected 70066
Merge rev 29891 from the 3.4 branch.

Merge the ZODB part of Zope/branches/jim-fix-zclasses.

Here are checkin msgs from the branch relating to ZODB code:

    r29872 | jim | 2005-04-04 07:04:39 -0400 (Mon, 04 Apr 2005) | 3 lines
    Changed paths:
       M /Zope/branches/jim-fix-zclasses/lib/python/ZODB/serialize.py

    For instances of persistent classes, save a class-module/clas-name
    tuple if the class has a non-empty module string.

    ------------------------------------------------------------------------
    r29871 | jim | 2005-04-04 07:04:33 -0400 (Mon, 04 Apr 2005) | 6 lines
    Changed paths:
       M /Zope/branches/jim-fix-zclasses/lib/python/ZODB/Connection.py

    Changed sub-transaction abort code to not invalidate created objects.
    There's really no point, because created objects will be unreachable
    after invalidating old objects.  Also, if a created object is
    non-ghostifiable, it will try to load it's state again, and then
    either it would fail or it would load non-committed state.

    ------------------------------------------------------------------------
    r29870 | jim | 2005-04-04 07:04:27 -0400 (Mon, 04 Apr 2005) | 3 lines
    Changed paths:
       A /Zope/branches/jim-fix-zclasses/lib/python/ZODB/persistentclass.py
       A /Zope/branches/jim-fix-zclasses/lib/python/ZODB/persistentclass.txt
       A /Zope/branches/jim-fix-zclasses/lib/python/ZODB/tests/testpersistentclass.py

    Added ZClass-independent test of (and possible base class for)
    persistent-class support machinery.

    ------------------------------------------------------------------------
    r29867 | jim | 2005-04-04 07:03:48 -0400 (Mon, 04 Apr 2005) | 2 lines
    Changed paths:
       M /Zope/branches/jim-fix-zclasses/lib/python/transaction/_manager.py

    Added missing arguments to commit and abort.

    ------------------------------------------------------------------------
    r29774 | jim | 2005-04-01 06:24:27 -0500 (Fri, 01 Apr 2005) | 3 lines
    Changed paths:
       M /Zope/branches/jim-fix-zclasses/lib/python/transaction/__init__.py

    Changed to use methods of a threaded manager directly, rather than
    through wrapper functions.

    ------------------------------------------------------------------------
    r29773 | jim | 2005-04-01 06:24:25 -0500 (Fri, 01 Apr 2005) | 3 lines
    Changed paths:
       M /Zope/branches/jim-fix-zclasses/lib/python/transaction/_manager.py

    Added commit and abort methods to transaction managers.
    This makes direcr use of managers simpler.

    ------------------------------------------------------------------------
    r29101 | jim | 2005-02-10 07:44:52 -0500 (Thu, 10 Feb 2005) | 2 lines
    Changed paths:
       M /Zope/branches/jim-fix-zclasses/lib/python/ZODB/Connection.py

    Removed an unused attribute.

    ------------------------------------------------------------------------
    r29100 | jim | 2005-02-10 07:42:35 -0500 (Thu, 10 Feb 2005) | 3 lines
    Changed paths:
       M /Zope/branches/jim-fix-zclasses/lib/python/transaction/_transaction.py

    Changed an XXX comment to an ordinary comment, explaining the relevent
    issue.

    ------------------------------------------------------------------------
    r29099 | jim | 2005-02-10 07:41:58 -0500 (Thu, 10 Feb 2005) | 3 lines
    Changed paths:
       M /Zope/branches/jim-fix-zclasses/lib/python/ZODB/Connection.py

    Changed some XXX comments to ordinary comments explaining the relevent
    issues.

    ------------------------------------------------------------------------
    r29071 | jim | 2005-02-07 07:36:05 -0500 (Mon, 07 Feb 2005) | 3 lines
    Changed paths:
       M /Zope/branches/jim-fix-zclasses/lib/python/transaction/_transaction.py

    Added a sanity check to avoid registration of objects without a
    manager. (Perhaps this should be an assert.)

    ------------------------------------------------------------------------
    r29067 | jim | 2005-02-07 07:35:56 -0500 (Mon, 07 Feb 2005) | 15 lines
    Changed paths:
       M /Zope/branches/jim-fix-zclasses/lib/python/ZODB/Connection.py

    Changed the strategy for handling invalidation of classes.
    No-longer use setklassstate.  Instead, just call _p_invalidate, as
    with any other object.  This changes didn't break any tests, so I
    assume that this was untested. :(

    Changed the strategy for invalidating objects.  Non-ghostifiable
    objects will load their state when they are invalidated.  We have to
    worry about other invalidations that come in while this is happening.
    See the comment in _flush_invalidations.

    We need to force all invalidations to take this into account, by going
    through _flush_invalidations.  I haven't done this yet, but I have
    left some XXX comments in places where it needs to be done to remind
    myself that this needs to be done.

    ------------------------------------------------------------------------
    r29066 | jim | 2005-02-07 07:35:54 -0500 (Mon, 07 Feb 2005) | 8 lines
    Changed paths:
       M /Zope/branches/jim-fix-zclasses/lib/python/persistent/cPickleCache.c

    Changed the strategy for handling invalidation of classes.
    No-longer use setklassstate.  Instead, just call _p_invalidate, as
    with any other object.  This changes didn't break any tests, so I
    assume that this was untested. :(

    Change invalidation to not swallow errors. (Swallowing errors here was a
    travesty!)

Revision 29765 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 31 21:49:32 2005 UTC (9 years, 7 months ago) by tim_one
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 1335 byte(s)
Diff to previous 29640 , to selected 70066
Expand the deprecation warning for get_transaction() to cover
the most common cases (commit() and abort()) -- it's not really
obvious that shortcut spelling exist for those.

Revision 29640 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 22 20:51:18 2005 UTC (9 years, 7 months ago) by tim_one
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 1195 byte(s)
Diff to previous 27087 , to selected 70066
Officially deprecate the monkey-patching of get_transaction into __builtin__.

Various Zopes probably need changes too (to avoid the new deprecation
warnings).

Revision 27087 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 12 21:02:48 2004 UTC (10 years, 2 months ago) by tim_one
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 1122 byte(s)
Diff to previous 25186 , to selected 70066
Merge/port assorted ZODB changes checked into Zope3's ZODB copy.

Please don't do that:  ZODB changes need to be done in the ZODB
project.  Checkins to Zope3 have no effect on ZODB in reality.

This includes:

r26945 | jim | 2004-08-06 18:30:44 -0400 (Fri, 06 Aug 2004) | 6 lines
   M /Zope3/trunk/src/persistent/tests/test_persistent.py

Updated to work with the versions of doctest from Python with versions
  greater than or equal to 2.3.0 and less than 2.4.0.a2 and with
  versions greater than 2.4.0a2.

r26482 | srichter | 2004-07-13 13:07:03 -0400 (Tue, 13 Jul 2004) | 2 lines
   M /Zope3/trunk/src/transaction/__init__.py
   M /Zope3/trunk/src/transaction/_transaction.py
   M /Zope3/trunk/src/transaction/tests/test_transaction.py

Converted XXX to TODO.

r25953 | sidnei | 2004-06-23 13:14:20 -0400 (Wed, 23 Jun 2004) | 1 line
   M /Zope3/trunk/src/ZODB/interfaces.py
   M /Zope3/trunk/src/transaction/_transaction.py

Add missing sortKey method to ZopeDBTransactionManager and DataManagerAdapter,
and also add it to the interface.

r25273 | philikon | 2004-06-06 04:43:57 -0400 (Sun, 06 Jun 2004) | 4 lines
Changed paths:
   M /Zope3/trunk/src/BTrees
   M /Zope3/trunk/src/ZODB
   M /Zope3/trunk/src/persistent

Ignore .so files.

This fix should probably be merged to the original ZODB tree.

Revision 25186 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 2 15:07:33 2004 UTC (10 years, 5 months ago) by jim
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 1075 byte(s)
Diff to previous 24679 , to selected 70066
Updated license to version 2.1.

Revision 24679 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 14 19:12:33 2004 UTC (10 years, 5 months ago) by tim_one
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 1075 byte(s)
Diff to previous 3558 , to selected 70066
Expand svn Id keywords in .py, .c, and .h files.

Revision 3558 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 11 15:59:08 2004 UTC (10 years, 5 months ago) by root
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 1075 byte(s)
Diff to previous 3487 , to selected 70066
Set mime-type or svn-eol property from cvs expansion data

Revision 3487 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 16 01:21:41 2004 UTC (10 years, 6 months ago) by jeremy
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 1075 byte(s)
Diff to previous 3436 , to selected 70066
Add optional subtransaction arguments to top-level commit() and abort().

Revision 3436 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 1 03:56:59 2004 UTC (10 years, 7 months ago) by jeremy
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 1051 byte(s)
Diff to previous 3308 , to selected 70066
Merge the jeremy-txn-branch to the head.

This branch introduces a new transaction API.  The key features are:
  - top-level functions in transaction -- get(), commit(), abort()
  - explicit transaction manager objects
  - Transaction objects are used for exactly one transaction
  - support for transaction synchronizers

The changes here are still provisional, but we want to get them off an
obscure branch and onto the head for further development.

Revision 3308 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 20 16:56:58 2004 UTC (10 years, 8 months ago) by fdrake
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 692 byte(s)
Diff to previous 2800 , to selected 70066

update to replace ZODB 4 with ZODB 3

Revision 2800 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 5 22:12:38 2003 UTC (11 years, 7 months ago) by jeremy
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 837 byte(s)
Diff to previous 2558 , to selected 70066
Merge jeremy-atomic-invalidation-branch.

Add suspend() and resume() to transaction manager API.
Change implementation so that the thread-aware manager does not
inherit from the thread-agnostic manager.
Add suspended transaction state.

Revision 2558 - (view) (download) (as text) (annotate) - [select for diffs]
Added Wed Dec 25 14:12:16 2002 UTC (11 years, 10 months ago) by jim
Original Path: ZODB/trunk/src/transaction/__init__.py
File length: 837 byte(s)
Diff to selected 70066
Grand renaming:

- Renamed most files (especially python modules) to lower case.

- Moved views and interfaces into separate hierarchies within each
  project, where each top-level directory under the zope package
  is a separate project.

- Moved everything to src from lib/python.

  lib/python will eventually go away. I need access to the cvs
  repository to make this happen, however.

There are probably some bits that are broken. All tests pass
and zope runs, but I haven't tried everything. There are a number
of cleanups I'll work on tomorrow.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

zope.org Infrastructure
ViewVC Help
Powered by ViewVC 1.0.3