[CMF-checkins] SVN: CMF/trunk/CMFCore/Skinnable.py None has no get method. This fixes https://bugs.launchpad.net/zope-cmf/+bug/162210

Wichert Akkerman wichert at wiggy.net
Mon Nov 12 10:43:28 EST 2007


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)



More information about the CMF-checkins mailing list