[CMF-checkins] CVS: CMF/CMFCore - SkinsTool.py:1.26
Andy McKay
andy@agmweb.ca
Fri, 14 Mar 2003 16:52:21 -0500
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv2395
Modified Files:
SkinsTool.py
Log Message:
Much cleaner implementation
=== CMF/CMFCore/SkinsTool.py 1.25 => 1.26 ===
--- CMF/CMFCore/SkinsTool.py:1.25 Fri Mar 14 16:37:47 2003
+++ CMF/CMFCore/SkinsTool.py Fri Mar 14 16:52:21 2003
@@ -274,10 +274,7 @@
if cookie != mskin:
resp = req.RESPONSE
- # you'd think that portal_url would expose this
- portalPath = pu()[len(req['BASE0']):]
- # ensure it starts with a '/'
- if not portalPath or portalPath[0] != '/': portalPath = '/'+portalPath
+ portalPath = '/' + pu.getPortalObject().absolute_url(1)
if not self.cookie_persistence:
# *Don't* make the cookie persistent!