Comment 6 for bug 98467

Revision history for this message
Fred Drake (fdrake) wrote : Re: [Bug 98467] Re: Expose setSite in a sane place

On 9/14/07, Jim Fulton <email address hidden> wrote:
> I'm having trouble following the paragraph above. Example of what?

A new API. In this case, the new API is:

  <someplace>.getSite()
  <someplace>.setSite(site)

maybe with the addition of:

  <someplace>.setSiteFromContext(context)

The new API doesn't depend on anything beyond the existing API:

  zope.app.component.hooks.getSite()
  zope.app.component.hooks.setSite(site)

(and zope.component, for setSiteFromContext()).

> What's the problem with bumping the version?

It seems silly to bump from a beta to another feature version, when a
separate package would do just fine.