Revision 1501
Jump to revision: |
|
Author: |
pje |
Date: |
Fri Nov 28 21:51:50 2003 UTC (20 years, 5 months ago) |
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]
)
Changed paths: