[Zope-CMF] [dev] Should portal_setup be registered as utility?
Wichert Akkerman
wichert at wiggy.net
Sun Nov 16 11:59:15 EST 2008
Previously Hanno Schlichting wrote:
> yuppie wrote:
> > CMFDefault registers portal_setup as utility. Some code in CMF depends
> > on that.
> >
> > Plone doesn't doesn't register portal_setup as utility:
> > http://dev.plone.org/plone/changeset/18763
> >
> > That causes some trouble in Plone:
> > http://dev.plone.org/plone/ticket/7714
> >
> > The same issue was reported as CMF bug:
> > https://bugs.launchpad.net/zope-cmf/+bug/263525
> >
> > Due to a misunderstanding the CMF bug was marked as 'Won't Fix'.
> >
> > 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.
Specifically the problem is that import/export steps use tools which for
whatever reason assume self.REQUEST is available.
WIchert.
--
Wichert Akkerman <wichert at wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
More information about the Zope-CMF
mailing list