Closed gyst closed 5 years ago
@gyst thanks for the bug report and digging up that specific commit, that was very helpful indeed!
To summarize, the issue here is that the AddPloneSite
view in Plone 5 now instead of languages()
has a grouped_languages()
method, which is used by the plone-addsite.pt
to render them in a fancy dropdown grouped by country.
Just ripping out the relevant differences from the template working those into ftw.inflator
's inflate.pt
seemed to be enough to fix this issue for running on Plone 5.
A potential way to accomplish both Plone4/5 compatibility could be to update our inflate.pt
with the changes from Plone 5, and "backport" necessary changes like the language grouping logic onto our own InflateView(AddPloneSite)
(and apply them conditionally when we're on Plone 4).
Not sure how @jone feels about this though :wink:
There's at least a couple other things I spotted that would be needed to make the @@inflate
view work on Plone 5:
Products.CMFDefault.interfaces.ICMFDefaultSkin
(used here) is gone in Plone 5. I think plone.theme.interfaces.IDefaultPloneLayer
could be used instead.plonetheme.sunburst
/plonetheme.classic
vs. plonetheme.barceloneta
)plone.protect
will abort the TXNThat's probably not enough yet, those were just the obvious ones I saw.
I actually don't need ftw.inflator, I only tried to fix it because some ftw.blueprints recipes (but not the one I'm using) depend on it - see https://github.com/4teamwork/ftw.blueprints/pull/24
@gyst ah, good to know, thank you for clarifying. I'll look into that one as well.
Well that took a while... @gyst We have now Plone 5.1 support included in ftw.inflator 1.10.0 😊
Since https://github.com/plone/Products.CMFPlone/commit/838b9d8fc58fecae9db29a99f3dc4ff59eeab111#diff-838cfafa046576fec5f26b52732abae6 the superclass API has changed.