E&S CVS Commit: PEAK - 'peak.naming' no longer automatically converts all addresses to the

pje at eby-sarna.com pje at eby-sarna.com
Wed Jun 18 19:31:00 EDT 2003


Module Name:	PEAK
Committed By:	pje
Date:		Wed Jun 18 23:39:51 UTC 2003

Modified Files:
	PEAK: CHANGES.txt
	PEAK/src/peak: peak.ini
	PEAK/src/peak/binding: components.py interfaces.py
	PEAK/src/peak/config: config_components.py interfaces.py
	    load_zconfig.py
	PEAK/src/peak/naming: URL.py contexts.py interfaces.py names.py spi.py
	PEAK/src/peak/naming/factories: openable.py shellcmd.py smtp.py
	PEAK/src/peak/running: commands.py interfaces.py lockfiles.py logs.py
	PEAK/src/peak/storage: DDE.py LDAP.py SQL.py interfaces.py

Log Message:
'peak.naming' no longer automatically converts all addresses to the
addressed objects.  You must specifically request the interface you want
by adapting the retrieved object to that interface.  This can be done by
supplying an 'adaptTo=ISomething' keyword argument to the attribute binding
definition or your 'lookupComponent()' call.

The naming system no longer has 'objectFactories' and 'stateFactories';
these have been replaced with adaptation.  Writable naming contexts must
have a 'serializationProtocol' attribute specifying what interface an object
should be adapted to before attempting to store it in that context.

The naming system no longer processes the 'creationName' keyword argument;
this is now considered the sole responsibility of 'peak.binding'.  The
'IComponent.lookupComponent()' method still accepts the keyword argument,
and attribute bindings still handle the creation name transparently.  It is
just not available via naming system APIs, and naming contexts no longer
have to deal with it.

Also, removed 'naming.ParsedURL'; it was deprecated as of 0.5 alpha 2.

(Note: 'smtp:' URLs are currently broken, in that we don't have an
interface to adapt them to for retrieval, and I didn't want to create
an SMTP naming context, since what we want to do with SMTP is still up in
the air.)


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/CHANGES.txt.diff?r1=1.50&r2=1.51
http://cvs.eby-sarna.com/PEAK/src/peak/peak.ini.diff?r1=1.50&r2=1.51
http://cvs.eby-sarna.com/PEAK/src/peak/binding/components.py.diff?r1=1.121&r2=1.122
http://cvs.eby-sarna.com/PEAK/src/peak/binding/interfaces.py.diff?r1=1.13&r2=1.14
http://cvs.eby-sarna.com/PEAK/src/peak/config/config_components.py.diff?r1=1.51&r2=1.52
http://cvs.eby-sarna.com/PEAK/src/peak/config/interfaces.py.diff?r1=1.27&r2=1.28
http://cvs.eby-sarna.com/PEAK/src/peak/config/load_zconfig.py.diff?r1=1.4&r2=1.5
http://cvs.eby-sarna.com/PEAK/src/peak/naming/URL.py.diff?r1=1.9&r2=1.10
http://cvs.eby-sarna.com/PEAK/src/peak/naming/contexts.py.diff?r1=1.52&r2=1.53
http://cvs.eby-sarna.com/PEAK/src/peak/naming/interfaces.py.diff?r1=1.40&r2=1.41
http://cvs.eby-sarna.com/PEAK/src/peak/naming/spi.py.diff?r1=1.40&r2=1.41
http://cvs.eby-sarna.com/PEAK/src/peak/naming/names.py.diff?r1=1.53&r2=1.54
http://cvs.eby-sarna.com/PEAK/src/peak/naming/factories/openable.py.diff?r1=1.11&r2=1.12
http://cvs.eby-sarna.com/PEAK/src/peak/naming/factories/shellcmd.py.diff?r1=1.1&r2=1.2
http://cvs.eby-sarna.com/PEAK/src/peak/naming/factories/smtp.py.diff?r1=1.19&r2=1.20
http://cvs.eby-sarna.com/PEAK/src/peak/running/commands.py.diff?r1=1.26&r2=1.27
http://cvs.eby-sarna.com/PEAK/src/peak/running/interfaces.py.diff?r1=1.13&r2=1.14
http://cvs.eby-sarna.com/PEAK/src/peak/running/lockfiles.py.diff?r1=1.19&r2=1.20
http://cvs.eby-sarna.com/PEAK/src/peak/running/logs.py.diff?r1=1.19&r2=1.20
http://cvs.eby-sarna.com/PEAK/src/peak/storage/DDE.py.diff?r1=1.7&r2=1.8
http://cvs.eby-sarna.com/PEAK/src/peak/storage/LDAP.py.diff?r1=1.24&r2=1.25
http://cvs.eby-sarna.com/PEAK/src/peak/storage/SQL.py.diff?r1=1.38&r2=1.39
http://cvs.eby-sarna.com/PEAK/src/peak/storage/interfaces.py.diff?r1=1.27&r2=1.28

To generate a diff of this commit:
cvs rdiff -r1.50 -r1.51 PEAK/CHANGES.txt
cvs rdiff -r1.50 -r1.51 PEAK/src/peak/peak.ini
cvs rdiff -r1.121 -r1.122 PEAK/src/peak/binding/components.py
cvs rdiff -r1.13 -r1.14 PEAK/src/peak/binding/interfaces.py
cvs rdiff -r1.51 -r1.52 PEAK/src/peak/config/config_components.py
cvs rdiff -r1.27 -r1.28 PEAK/src/peak/config/interfaces.py
cvs rdiff -r1.4 -r1.5 PEAK/src/peak/config/load_zconfig.py
cvs rdiff -r1.9 -r1.10 PEAK/src/peak/naming/URL.py
cvs rdiff -r1.52 -r1.53 PEAK/src/peak/naming/contexts.py
cvs rdiff -r1.40 -r1.41 PEAK/src/peak/naming/interfaces.py \
    PEAK/src/peak/naming/spi.py
cvs rdiff -r1.53 -r1.54 PEAK/src/peak/naming/names.py
cvs rdiff -r1.11 -r1.12 PEAK/src/peak/naming/factories/openable.py
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/naming/factories/shellcmd.py
cvs rdiff -r1.19 -r1.20 PEAK/src/peak/naming/factories/smtp.py
cvs rdiff -r1.26 -r1.27 PEAK/src/peak/running/commands.py
cvs rdiff -r1.13 -r1.14 PEAK/src/peak/running/interfaces.py
cvs rdiff -r1.19 -r1.20 PEAK/src/peak/running/lockfiles.py \
    PEAK/src/peak/running/logs.py
cvs rdiff -r1.7 -r1.8 PEAK/src/peak/storage/DDE.py
cvs rdiff -r1.24 -r1.25 PEAK/src/peak/storage/LDAP.py
cvs rdiff -r1.38 -r1.39 PEAK/src/peak/storage/SQL.py
cvs rdiff -r1.27 -r1.28 PEAK/src/peak/storage/interfaces.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