Jump to revision: | |
---|---|
Author: | pje |
Date: | Sun Aug 31 00:23:04 2003 UTC (20 years, 7 months ago) |
Log Message:
'naming.IBasicContext.lookup()' and 'naming.lookup()' now accept a 'default' argument, similar to that used by 'lookupComponent()' and most other lookup-like APIs in PEAK. This change was made so that component lookups don't need to rely on catching 'exceptions.NameNotFound' errors to tell them when to use the default value. This could hide 'NameNotFound' errors that were actually from a broken component somewhere in the lookup process. (In general, it's probably a bad idea to have an exception that's used for both control flow and real errors!) Also, removed most trapping of 'NameNotFound' errors throughout PEAK, except for those in N2, which I'll leave for Ty. :) Last, but not least, cleaned up documentation of related interfaces/methods.
Changed paths:
Path | Action | Text Changes | Prop Changes | Diff to Previous |
---|---|---|---|---|
PEAK/CHANGES.txt | modified | X | (diff to previous) | |
PEAK/TODO.txt | modified | X | (diff to previous) | |
PEAK/src/peak/binding/components.py | modified | X | (diff to previous) | |
PEAK/src/peak/binding/interfaces.py | modified | X | (diff to previous) | |
PEAK/src/peak/naming/api.py | modified | X | (diff to previous) | |
PEAK/src/peak/naming/contexts.py | modified | X | (diff to previous) | |
PEAK/src/peak/naming/interfaces.py | modified | X | (diff to previous) | |
PEAK/src/peak/naming/names.py | modified | X | (diff to previous) | |
PEAK/src/peak/running/commands.py | modified | X | (diff to previous) |
cvs-admin@eby-sarna.com Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |