Jump to revision: | |
---|---|
Author: | pje |
Date: | Fri Oct 11 00:53:50 2002 UTC (21 years, 5 months ago) |
Log Message:
Properties and utilities are unified at last! Both properties and utilities are now handled by the __instance_provides__ and __class_provides__ attributes of component classes. This simplified the code and interfaces for both PropertyMap and for registering dynamic utility providers. Property names now have an additional syntax form: 'some.prop?' which is used as a default value that is checked after 'some.prop', 'some.*', and 'some.prop' (a second time). This is handled transparently for you by way of the 'setDefault()' method of 'IPropertyMap', so effectively it's an implementation detail. Documentation is still a little sketchy, but it should now be straightforward to get the naming system using properties and utilities in a harmonious way. ALSO: Fixed config.getLocal() to ensure it's working with a root component. binding.New() can now use an import string instead of a class/type/callable. The object referenced by the import string will be loaded and called as though the object itself had been used. GlobalConfig and LocalConfig now have 'setup()' methods that can be overridden to create default rule and provider registrations. This'll be handy for making LocalConfig register a default transaction service provider, for example.
Changed paths:
Path | Action | Text Changes | Prop Changes | Diff to Previous |
---|---|---|---|---|
PEAK/src/peak/binding/components.py | modified | X | (diff to previous) | |
PEAK/src/peak/binding/once.py | modified | X | (diff to previous) | |
PEAK/src/peak/config/api_impl.py | modified | X | (diff to previous) | |
PEAK/src/peak/config/config_components.py | modified | X | (diff to previous) | |
PEAK/src/peak/config/interfaces.py | modified | X | (diff to previous) | |
PEAK/src/peak/naming/contexts.py | modified | X | (diff to previous) |
cvs-admin@eby-sarna.com Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |