[Zope-CMF] CMF Tests: 9 OK
Summary of messages to the cmf-tests list. Period Mon May 26 11:00:00 2008 UTC to Tue May 27 11:00:00 2008 UTC. There were 9 messages: 9 from CMF Tests. Tests passed OK --- Subject: OK : CMF-1.6 Zope-2.8 Python-2.3.6 : Linux From: CMF Tests Date: Mon May 26 21:40:39 EDT 2008 URL: http://mail.zope.org/pipermail/cmf-tests/2008-May/008876.html Subject: OK : CMF-1.6 Zope-2.9 Python-2.4.4 : Linux From: CMF Tests Date: Mon May 26 21:42:10 EDT 2008 URL: http://mail.zope.org/pipermail/cmf-tests/2008-May/008877.html Subject: OK : CMF-2.0 Zope-2.9 Python-2.4.4 : Linux From: CMF Tests Date: Mon May 26 21:43:40 EDT 2008 URL: http://mail.zope.org/pipermail/cmf-tests/2008-May/008878.html Subject: OK : CMF-2.0 Zope-2.10 Python-2.4.4 : Linux From: CMF Tests Date: Mon May 26 21:45:10 EDT 2008 URL: http://mail.zope.org/pipermail/cmf-tests/2008-May/008879.html Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.4 : Linux From: CMF Tests Date: Mon May 26 21:46:40 EDT 2008 URL: http://mail.zope.org/pipermail/cmf-tests/2008-May/008880.html Subject: OK : CMF-2.1 Zope-2.11 Python-2.4.4 : Linux From: CMF Tests Date: Mon May 26 21:48:11 EDT 2008 URL: http://mail.zope.org/pipermail/cmf-tests/2008-May/008881.html Subject: OK : CMF-trunk Zope-2.10 Python-2.4.4 : Linux From: CMF Tests Date: Mon May 26 21:49:41 EDT 2008 URL: http://mail.zope.org/pipermail/cmf-tests/2008-May/008882.html Subject: OK : CMF-trunk Zope-2.11 Python-2.4.4 : Linux From: CMF Tests Date: Mon May 26 21:51:11 EDT 2008 URL: http://mail.zope.org/pipermail/cmf-tests/2008-May/008883.html Subject: OK : CMF-trunk Zope-trunk Python-2.4.4 : Linux From: CMF Tests Date: Mon May 26 21:52:41 EDT 2008 URL: http://mail.zope.org/pipermail/cmf-tests/2008-May/008884.html ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Working with Zope 3 skin layers
Hi, a couple of questions when using these - I was hoping to be able to use one for some special views of a site but I'm getting errors. I've defined and configured a layer and it works when called by ++skin+ + traversal but I have problems if I configured views to work with it explicitly: I get not found errors. ie. browser:page for=Products.Charlie.event.interfaces.IEventDetail layer=Products.Charlie.skin.ICharlieSkin name=detail.html template=detail.pt class=.detail.DetailEdit permission=cmf.ModifyPortalContent / fails for /@@detail.html but browser:page for=Products.Charlie.event.interfaces.IEventDetail name=detail.html template=detail.pt class=.detail.DetailEdit permission=cmf.ModifyPortalContent / is fine with /++skin++charlie/@@detail.html Of course, this ties in with what I get from Zope - that the adapter can't be found. I suspect I've misunderstood something fundamental on how views work with layers. Regarding CMFDefault - all views are registered explicitly for ICMFDefaultSkin but I think this isn't necessary as this is configured as the default skin. I also got a bit a lost with the lookup and would suggest moving the interface definition to the skin folder so that the lookup is more explicit interface interface=Products.CMFDefault.skin.IcamaoCmsSkin type=zope.publisher.interfaces.browser.IBrowserSkinType name=cmf / Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: Working with Zope 3 skin layers
Charlie Clark wrote: I've defined and configured a layer and it works when called by ++skin++ traversal but I have problems if I configured views to work with it explicitly: I get not found errors. ie. browser:page for=Products.Charlie.event.interfaces.IEventDetail layer=Products.Charlie.skin.ICharlieSkin name=detail.html template=detail.pt class=.detail.DetailEdit permission=cmf.ModifyPortalContent / fails for /@@detail.html but Right. This will look up the 'detail.html' view for (context, request). Now it depends on what layers the request has applied to. Unless you've changed anything in the default skin configuration, it will have Zope's default skin. Since the 'detail.html' view above wasn't registered for the default layer but for soemthing else, it's not found. browser:page for=Products.Charlie.event.interfaces.IEventDetail name=detail.html template=detail.pt class=.detail.DetailEdit permission=cmf.ModifyPortalContent / is fine with /++skin++charlie/@@detail.html Yup, because if you don't specificy a layer explicitly, browser:page / will register a view for IDefaultBrowserLayer. Your charlie skin probably inherits from IDefaultBrowserLayer (either directly or indirectly). That's why this works. Of course, this ties in with what I get from Zope - that the adapter can't be found. I suspect I've misunderstood something fundamental on how views work with layers. My book has a large section devoted to this. :) Regarding CMFDefault - all views are registered explicitly for ICMFDefaultSkin but I think this isn't necessary as this is configured as the default skin. No, it *is* necessary, because the default skin can always change. In fact, nearly every application (in the Zope 3 world) sets the default skin (otherwise you'd need those hideous ++skin++ things in all URLs). Also, by explicitly putting all views on the ICMFDefaultSkin layer, those views are only there if your skin interface inherits from ICMFDefaultSkin. Which means you can easily switch off those CMF views by not including ICMFDefaultSkin. For some people this is an important use case. ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests