[Zope-CMF] Forcing skins by role
Shane Hathaway
shane@zope.com
Fri, 23 Aug 2002 12:52:06 -0400 (EDT)
On Fri, 23 Aug 2002 sean.upton@uniontrib.com wrote:
> hmm... Does anyone know if there are problems/changes in CMF 1.3 from 1.3b2
> related to setting a skin this way? I seemed to have a problem like this
> when I set up a new CMF 1.3 setup and copied source for a rule from an old
> (an access rule that worked on CMF 1.3b2 not working on a CMF 1.3 site,
> running on Zope 2.6a)...
setupCurrentSkin() is now optimized to ignore multiple calls within a
request. We discovered it was a major performance hit for important
sites. It was never really designed to allow you to change skins
mid-request anyway. So the old access rules won't work.
changeSkin() is the new, official way to change skins mid-request. Thank
Alan. :-)
Shane