E&S CVS Commit: PEAK - Refactor TransactionComponent so that 'txnSvc' can be assigned at __init__.

pje at eby-sarna.com pje at eby-sarna.com
Tue Nov 26 14:02:00 EST 2002

Module Name:	PEAK
Committed By:	pje
Date:		Tue Nov 26 19:01:25 UTC 2002

Modified Files:
	PEAK/src/peak/storage: SQL.py connections.py data_managers.py
	PEAK/src/peak/storage/tests: __init__.py

Log Message:
Refactor TransactionComponent so that 'txnSvc' can be assigned at __init__.
'joinedTxn' is now the way to require that the component is in a
transaction; 'txnSvc' is just the transaction service, and is now provided
to subobjects, so they needn't search higher in the hierarchy, and so that
a 'txnSvc' override will propagate downwards.  Also, added synonyms:

 storage.begin()  == storage.beginTransaction()
 storage.commit() == storage.commitTransaction()
 storage.abort()  == storage.abortTransaction()

For ease of use in short scripts, etc.  The longer names are still the
"official" names, however, and will show up in tracebacks/help/etc.

To view diffs of this commit, you can use the following URL(s):

To generate a diff of this commit:
cvs rdiff -r1.25 -r1.26 PEAK/src/peak/storage/SQL.py
cvs rdiff -r1.10 -r1.11 PEAK/src/peak/storage/connections.py
cvs rdiff -r1.6 -r1.7 PEAK/src/peak/storage/data_managers.py
cvs rdiff -r1.15 -r1.16 PEAK/src/peak/storage/transactions.py
cvs rdiff -r1.9 -r1.10 PEAK/src/peak/storage/tests/__init__.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

More information about the source-changes mailing list