[CMF-checkins] CVS: Products/CMFCore - Skinnable.py:1.15.2.2
Florent Guillaume
fg at nuxeo.com
Sun Mar 27 12:33:58 EST 2005
Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv8469
Modified Files:
Tag: CMF-1_5-branch
Skinnable.py
Log Message:
Added proper API to clear the skins.
=== Products/CMFCore/Skinnable.py 1.15.2.1 => 1.15.2.2 ===
--- Products/CMFCore/Skinnable.py:1.15.2.1 Fri Mar 25 10:26:53 2005
+++ Products/CMFCore/Skinnable.py Sun Mar 27 12:33:57 2005
@@ -130,6 +130,13 @@
if REQUEST is not None:
REQUEST._hold(SkinDataCleanup(tid))
+ security.declarePublic('clearCurrentSkin')
+ def clearCurrentSkin(self):
+ """Clear the current skin."""
+ tid = get_ident()
+ if SKINDATA.has_key(tid):
+ del SKINDATA[tid]
+
security.declarePublic('setupCurrentSkin')
def setupCurrentSkin(self, REQUEST=None):
'''
More information about the CMF-checkins
mailing list