[Framework-Team] Re: KSS vs. CMF/Z3

Hanno Schlichting plone at hannosch.info
Sat Mar 17 00:36:20 UTC 2007


Hi.

Alexander Limi wrote:
> May I use the red flag? :)

Yes, you may :(

> Right now, the problems related to KSS vs. CMF is breaking things that
> are crucial for a beta release. Pretty much everything that is related
> to KSS seems to be broken right now:
> 
> - Inline editing doesn't work
> - Inline validation on edit forms doesn't work
> - Clicking the next/previous links in the calendar doesn't work
> 
> All of these fail with "AttributeError: portal_workflow".
> 
> In general, I expect things to break now and then in this phase, but the
> problem now is that everyone is essentially saying "it's not my fault
> (and I don't know anything about [KSS|Zope 3|Five|CMF|insert technology
> here]" and/or "Rocky said he'd look at it when he had time".

You only need to know about how Acquisition really works. I tried to
explain the problem in my other mail to plone-dev
(http://article.gmane.org/gmane.comp.web.zope.plone.devel/14873)
targeted at fellow developers which might be able to help here.

> I understand that it is a complex problem, and that it's really nobody's
> fault as such — just an unfortunate and unintended side effect of
> updating the CMF infrastructure — which is why we need to pull in the
> same direction on this.
> 
> Is there any way that we can get some of the stakeholders together and
> try attacking the problem from the various fronts at the same time? KSS,
> Five, CMF, who else is needed?

I tried the only approach I could think of besides fixing the problem at
the right level (which I'm not smart enough) and have written something
that I call a guerrilla hack, as it is even more evil than the usual
monkey patches I tend to write.

You can put the attached file into CMFPlone/patches and import it from
the __init__.py to get the desired effect. This hacks the component
registry used in kss.core so it behaves like five.localsitemanager in
regard to utilities and Acquisition. It does only work when you have
exactly one component registry in your portal root and the one from KSS.

As most of the Plone tests are currently broken because of some changes
to the default workflow I couldn't run any tests and did only do some
TTW testing which showed that the hack seems to work in a standard site.

This kind of hack really should be the last resort and I don't want to
see it ship with Plone, but it's better than not shipping Plone at all...

Hanno
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: kssVsFiveLsmHack.py
URL: <http://lists.plone.org/pipermail/plone-framework-team/attachments/20070317/62a81ffb/attachment.ksh>


More information about the Framework-Team mailing list