[CMF-checkins] CVS: Products/CMFCore - Skinnable.py:1.17

Florent Guillaume fg at nuxeo.com
Sun Mar 27 12:32:34 EST 2005


Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv8145

Modified Files:
	Skinnable.py 
Log Message:
Added proper API to clear the skins.


=== Products/CMFCore/Skinnable.py 1.16 => 1.17 ===
--- Products/CMFCore/Skinnable.py:1.16	Fri Mar 25 10:35:44 2005
+++ Products/CMFCore/Skinnable.py	Sun Mar 27 12:32:33 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