E&S CVS Commit: PEAK - Got rid of the 'adaptTo' requirement for retrieving objects from naming
pje at eby-sarna.com
pje at eby-sarna.com
Wed Jul 16 19:10:00 EDT 2003
Module Name: PEAK
Committed By: pje
Date: Wed Jul 16 23:09:30 UTC 2003
Modified Files:
PEAK: CHANGES.txt
PEAK/src/peak: peak.ini
PEAK/src/peak/naming: URL.py contexts.py interfaces.py names.py
PEAK/src/peak/naming/factories: openable.py smtp.py
PEAK/src/peak/running: lockfiles.py logs.py
PEAK/src/peak/storage: DDE.py LDAP.py SQL.py connections.py
Log Message:
Got rid of the 'adaptTo' requirement for retrieving objects from naming
contexts. Note that if you have defined any URL schemes that do not also
define a naming context class, you will need to revise them. Specifically,
you need to add a 'defaultFactory' attribute referencing the name of the
class of object that the URL should retrieve, and you need to have that
class declare that it (not its instances) provide 'naming.IObjectFactory',
and add a 'getObjectInstance()' classmethod to do the dirty work. If your
URL scheme references a subclass of ManagedConnection, you don't need to
do the object factory stuff, however, as it's already done for you in
the ManagedConnection base. All you need is the 'defaultFactory'
attribute. Also, if you defined any adapter declarations for your URLs
to the target class, you should get rid of them.
To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/CHANGES.txt.diff?r1=1.61&r2=1.62
http://cvs.eby-sarna.com/PEAK/src/peak/peak.ini.diff?r1=1.56&r2=1.57
http://cvs.eby-sarna.com/PEAK/src/peak/naming/URL.py.diff?r1=1.14&r2=1.15
http://cvs.eby-sarna.com/PEAK/src/peak/naming/contexts.py.diff?r1=1.54&r2=1.55
http://cvs.eby-sarna.com/PEAK/src/peak/naming/names.py.diff?r1=1.54&r2=1.55
http://cvs.eby-sarna.com/PEAK/src/peak/naming/interfaces.py.diff?r1=1.42&r2=1.43
http://cvs.eby-sarna.com/PEAK/src/peak/naming/factories/openable.py.diff?r1=1.14&r2=1.15
http://cvs.eby-sarna.com/PEAK/src/peak/naming/factories/smtp.py.diff?r1=1.20&r2=1.21
http://cvs.eby-sarna.com/PEAK/src/peak/running/lockfiles.py.diff?r1=1.20&r2=1.21
http://cvs.eby-sarna.com/PEAK/src/peak/running/logs.py.diff?r1=1.22&r2=1.23
http://cvs.eby-sarna.com/PEAK/src/peak/storage/DDE.py.diff?r1=1.8&r2=1.9
http://cvs.eby-sarna.com/PEAK/src/peak/storage/LDAP.py.diff?r1=1.25&r2=1.26
http://cvs.eby-sarna.com/PEAK/src/peak/storage/SQL.py.diff?r1=1.42&r2=1.43
http://cvs.eby-sarna.com/PEAK/src/peak/storage/connections.py.diff?r1=1.19&r2=1.20
To generate a diff of this commit:
cvs rdiff -r1.61 -r1.62 PEAK/CHANGES.txt
cvs rdiff -r1.56 -r1.57 PEAK/src/peak/peak.ini
cvs rdiff -r1.14 -r1.15 PEAK/src/peak/naming/URL.py
cvs rdiff -r1.54 -r1.55 PEAK/src/peak/naming/contexts.py \
PEAK/src/peak/naming/names.py
cvs rdiff -r1.42 -r1.43 PEAK/src/peak/naming/interfaces.py
cvs rdiff -r1.14 -r1.15 PEAK/src/peak/naming/factories/openable.py
cvs rdiff -r1.20 -r1.21 PEAK/src/peak/naming/factories/smtp.py
cvs rdiff -r1.20 -r1.21 PEAK/src/peak/running/lockfiles.py
cvs rdiff -r1.22 -r1.23 PEAK/src/peak/running/logs.py
cvs rdiff -r1.8 -r1.9 PEAK/src/peak/storage/DDE.py
cvs rdiff -r1.25 -r1.26 PEAK/src/peak/storage/LDAP.py
cvs rdiff -r1.42 -r1.43 PEAK/src/peak/storage/SQL.py
cvs rdiff -r1.19 -r1.20 PEAK/src/peak/storage/connections.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