[Subversion] / PEAK / CHANGES.txt  

Revision 1267


Jump to revision:
Previous Next
Author: pje
Date: Wed Jul 16 23:09:30 2003 UTC (20 years, 8 months ago)

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.

Changed paths:

Path Action Text Changes Prop Changes Diff to Previous
PEAK/CHANGES.txt modified X   (diff to previous)
PEAK/src/peak/naming/URL.py modified X   (diff to previous)
PEAK/src/peak/naming/contexts.py modified X   (diff to previous)
PEAK/src/peak/naming/factories/openable.py modified X   (diff to previous)
PEAK/src/peak/naming/factories/smtp.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/peak.ini modified X   (diff to previous)
PEAK/src/peak/running/lockfiles.py modified X   (diff to previous)
PEAK/src/peak/running/logs.py modified X   (diff to previous)
PEAK/src/peak/storage/DDE.py modified X   (diff to previous)
PEAK/src/peak/storage/LDAP.py modified X   (diff to previous)
PEAK/src/peak/storage/SQL.py modified X   (diff to previous)
PEAK/src/peak/storage/connections.py modified X   (diff to previous)

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help