E&S CVS Commit: PEAK - Added pretty much everything needed to do utility lookups and register

pje at eby-sarna.com pje at eby-sarna.com
Sat Jul 13 13:14:01 EDT 2002


Module Name:	PEAK
Committed By:	pje
Date:		Sat Jul 13 17:13:10 UTC 2002

Modified Files:
	PEAK/src/peak/binding: components.py

Log Message:
Added pretty much everything needed to do utility lookups and register
providers, except for the 'provides=' hook on binding classes, which I
think will need some refactoring of the 'once'and 'components' modules to
do cleanly.  I changed the name from 'acquireProvider' to 'acquireUtility',
since what it returns you is a utility, even though you register providers
in order to provide the utilities.  It's more correct, even if it may also
be more confusing at first.  But I'm guessing that it'll be uncommon to
ever use 'acquireUtility()' directly in the first place, since
'lookupComponent()' will now take an interface as a name and look it up for
you.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/binding/components.py.diff?r1=1.25&r2=1.26

To generate a diff of this commit:
cvs rdiff -r1.25 -r1.26 PEAK/src/peak/binding/components.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