Log message for revision 81770:
  None has no get method. This fixes 
https://bugs.launchpad.net/zope-cmf/+bug/162210

Changed:
  U   CMF/trunk/CMFCore/Skinnable.py

-=-
Modified: CMF/trunk/CMFCore/Skinnable.py
===================================================================
--- CMF/trunk/CMFCore/Skinnable.py      2007-11-12 15:42:35 UTC (rev 81769)
+++ CMF/trunk/CMFCore/Skinnable.py      2007-11-12 15:43:28 UTC (rev 81770)
@@ -116,6 +116,8 @@
     security.declarePublic('getSkinNameFromRequest')
     def getSkinNameFromRequest(self, REQUEST=None):
         '''Returns the skin name from the Request.'''
+        if REQUEST is None:
+            return None
         sfn = self.getSkinsFolderName()
         if sfn is not None:
             sf = getattr(self, sfn, None)

_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins

Reply via email to