E&S CVS Commit: PEAK - Added 'naming.Indirect(key)', a 'binding.IComponentKey' that can be used to

pje at eby-sarna.com pje at eby-sarna.com
Fri Nov 28 16:52:00 EST 2003


Module Name:	PEAK
Committed By:	pje
Date:		Fri Nov 28 21:51:50 UTC 2003

Modified Files:
	PEAK: CHANGES.txt TODO.txt
	PEAK/src/peak/binding/tests: __init__.py
	PEAK/src/peak/naming: names.py

Log Message:
Added 'naming.Indirect(key)', a 'binding.IComponentKey' that can be used to
do an indirect lookup via another 'IComponentKey' (such as a name).  Using
'naming.Indirect()', you can replace code like this::

    socket = binding.Obtain(
        lambda self: self.lookupComponent(self.socketURL),
        adaptTo = [IListeningSocket]
    )

with code like this::

    socket = binding.Obtain(
        naming.Indirect('socketURL'), adaptTo = [IListeningSocket]
    )


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/CHANGES.txt.diff?r1=1.100&r2=1.101
http://cvs.eby-sarna.com/PEAK/TODO.txt.diff?r1=1.76&r2=1.77
http://cvs.eby-sarna.com/PEAK/src/peak/binding/tests/__init__.py.diff?r1=1.38&r2=1.39
http://cvs.eby-sarna.com/PEAK/src/peak/naming/names.py.diff?r1=1.60&r2=1.61

To generate a diff of this commit:
cvs rdiff -r1.100 -r1.101 PEAK/CHANGES.txt
cvs rdiff -r1.76 -r1.77 PEAK/TODO.txt
cvs rdiff -r1.38 -r1.39 PEAK/src/peak/binding/tests/__init__.py
cvs rdiff -r1.60 -r1.61 PEAK/src/peak/naming/names.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