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
	    transactions.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):
http://cvs.eby-sarna.com/PEAK/src/peak/storage/SQL.py.diff?r1=1.25&r2=1.26
http://cvs.eby-sarna.com/PEAK/src/peak/storage/connections.py.diff?r1=1.10&r2=1.11
http://cvs.eby-sarna.com/PEAK/src/peak/storage/data_managers.py.diff?r1=1.6&r2=1.7
http://cvs.eby-sarna.com/PEAK/src/peak/storage/transactions.py.diff?r1=1.15&r2=1.16
http://cvs.eby-sarna.com/PEAK/src/peak/storage/tests/__init__.py.diff?r1=1.9&r2=1.10

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