[Zope3-dev] PythonProgrammerTutorial
Jim Fulton
jim@zope.com
Wed, 05 Dec 2001 14:34:10 -0500
Martijn Faassen wrote:
>
> Jim Fulton wrote:
> > sean.bowman@acm.org wrote:
> [snip snip]
> > > It seems some stuff that used to be done with acquisition is now sometimes
> > > handled in an xml configuration file, for example, associating a (possibly
> > > default) view with some object.
> >
> > Acquisition is still used for looking up software. The configuration
> > file is just used for globally registered components. There will also
> > be services for managing components through the web. When you lookup a
> > component, the lookup will be done in a "place-full" way, where
> > place is expressed via an access context that is effectively the
> > same as an acquisition context.
>
> So feature lookups in the feature service can also be placeful? Or perhaps
> alternatively, the feature service to use in a place can be dependent on the
> place?
Yes. When you:
getFeature(ob, I)
the component architecture find the closest Feature
service to ob and then call getFeature on it to find
a feature registered for the interfaces implemented by
ob. It can delegate to other feature services later.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (888) 344-4332 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org