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

Paul Winkler pw_lists@slinkp.com
Fri, 14 Mar 2003 12:43:58 -0500


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv2401

Modified Files:
	Skinnable.py 
Log Message:


Merging docstring fixes to changeSkin and setupCurrentSkin
from slinkp_collector_27-branch (Collector #27)


=== CMF/CMFCore/Skinnable.py 1.7 => 1.8 ===
--- CMF/CMFCore/Skinnable.py:1.7	Thu Aug 22 13:45:53 2002
+++ CMF/CMFCore/Skinnable.py	Fri Mar 14 12:43:57 2003
@@ -102,6 +102,9 @@
 
     security.declarePublic('changeSkin')
     def changeSkin(self, skinname):
+        '''Can be called manually, allowing the user to change
+        skins in the middle of a request.
+        '''
         self._v_skindata = None
         skinobj = self.getSkin(skinname)
         if skinobj is not None:
@@ -111,8 +114,8 @@
     def setupCurrentSkin(self, REQUEST=None):
         '''
         Sets up _v_skindata so that __getattr__ can find it.
-        Can also be called manually, allowing the user to change
-        skins in the middle of a request.
+        Can NOT be called manually to change skins in the middle of a 
+        request! Use changeSkin for that.
         '''
         if REQUEST is None:
             REQUEST = getattr(self, 'REQUEST', None)