E&S CVS Commit: PEAK - Made peak.storage a proper package and added it to setup.py. Added a

pje at eby-sarna.com pje at eby-sarna.com
Sat Aug 17 17:33:00 EDT 2002


Module Name:	PEAK
Committed By:	pje
Date:		Sat Aug 17 21:32:48 UTC 2002

Modified Files:
	PEAK: setup.py
	PEAK/src/peak/storage: interfaces.py transactions.py
Added Files:
	PEAK/src/peak/storage: __init__.py

Log Message:
Made peak.storage a proper package and added it to setup.py.  Added a
'finishTransaction()' message to the participant API, so that objects can
be sure a transaction is really, and completely, over.  Made the abstract
TransactionService concrete by finishing out a few more methods and making
it a binding.AutoCreated component.  Now adding a transaction service to an
application is as easy as 'myTxnAttribute = storage.TransactionService' in
a high-level component.

Also added a 'TransactionComponent' base class for things like managed
connection objects and Racks.  Instances automatically register with their
nearest transaction service as soon as they're added to a component
hierarchy.

Last, but not least, I fleshed out the transaction metadata implementations
for both the basic transaction service and the ZODB-compatible one.  The
ZODBTransactionService will interpret the names 'note', 'user_name' and
'user_path' as special, and call the note() and setUser() methods of the
underlying ZODB transaction, accordingly.  All other info items will be
set via setExtendedInfo() on the underlying ZODB transaction.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/setup.py.diff?r1=1.19&r2=1.20
http://cvs.eby-sarna.com/PEAK/src/peak/storage/__init__.py?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.eby-sarna.com/PEAK/src/peak/storage/interfaces.py.diff?r1=1.3&r2=1.4
http://cvs.eby-sarna.com/PEAK/src/peak/storage/transactions.py.diff?r1=1.3&r2=1.4

To generate a diff of this commit:
cvs rdiff -r1.19 -r1.20 PEAK/setup.py
cvs rdiff -r0 -r1.1 PEAK/src/peak/storage/__init__.py
cvs rdiff -r1.3 -r1.4 PEAK/src/peak/storage/interfaces.py \
    PEAK/src/peak/storage/transactions.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