[Zope-CMF] Testing skin scripts and templates using ZopeTestCase.Functional

Chris Withers chris at simplistix.co.uk
Thu Oct 6 05:30:37 EDT 2005


Paul Winkler wrote:
> Aha!  I just confirmed that it works as you say in zopectl debug.
> (You do have to first make sure that the portal has a REQUEST attribute.)

Yeah, I believe the canonical way is:

from Testing.makerequest import makerequest
portal = makerequest(self.portal)
portal.changeSkin('Nouvelle')

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope-CMF mailing list