[Zope-CMF] [dev] Should portal_setup be registered as utility?

yuppie y.2008 at wcm-solutions.de
Sun Nov 16 12:11:44 EST 2008


Hanno Schlichting wrote:
> yuppie wrote:
>> Questions: Is there a good reason why Plone doesn't register 
>> portal_setup as utility? Does the same reason apply to CMFDefault? Do we 
>> have to support registered and not registered portal_setup tools?
> 
> The reason why we don't register the setup tool as an utility anymore,
> is that too many import/export steps in-the-wild required the REQUEST to
> be available.

Are there use cases where the REQUEST is required or is this 'just' a 
backwards compatibility issue?

> In general we removed the tool as utility registrations for all tools
> where a request was still required. We'd like to put those back only
> after the request is really not used anymore i.e. after the code has
> been adjusted - not force any code to be changed due to the utility
> registration.

How do you encourage people to adjust their import/export steps? People 
will write new steps that depend on REQUEST if there are no deprecation 
warnings.

> I'd prefer the portal_setup tool utility registration to be removed again.

I'm not sure if the import/export steps used by CMF are clean or if 
nobody recognized the issue because nobody runs import/export steps from 
a portal_setup tool that was looked up as utility. Maybe the issue just 
shows up in combination with portal_quickinstall?

I don't like to remove CMF's portal_setup registration *if* CMF itself 
is not affected by this issue.

Cheers, Yuppie



More information about the Zope-CMF mailing list