8 Apr 2006 00:53
Viewlets
Hi guys, I'm thinking about several things I'd like to enable in Plone 3.0, and the concept of using viewlets is really attractive. For example, the contentmenu (the green one, with actions and state and add item): It's impossible to add a new drop-down without overriding the entire thing. In general, this could be solved by having the whole menu be rendered as a viewlet manager, with each menu provided by a viewlet. You could then register new viewlets to get new menus. I've only read through the READMEs of zope.contentprovider (http://svn.zope.org/Zope3/trunk/src/zope/contentprovider/README.txt?rev=66018&view=markup) and zope.viewlet (http://svn.zope.org/Zope3/trunk/src/zope/viewlet/README.txt?rev=41173&view=auto), and probably should do so again. I wanted to ask, though, if any of you have got some experience with viewlets and would like to discuss it further? In particular, we need to work out whether we could: - use them in 3.0 directly (unlikely, since it requires a provides: TAL namespace, which probably requires the Zope 3.x TAL implementation that may or may not land in Zope 2.10) - use them via some additional magic (e.g. a global python object that could act as the provides: expression in a regular tal:content) - use its interfaces and implement our own rendering cycle via views (the(Continue reading)
RSS Feed