[CMF-checkins] SVN: CMF/branches/2.1/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:42:36 EST 2007


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

Changed:
  U   CMF/branches/2.1/CMFCore/Skinnable.py

-=-
Modified: CMF/branches/2.1/CMFCore/Skinnable.py
===================================================================
--- CMF/branches/2.1/CMFCore/Skinnable.py	2007-11-12 15:11:05 UTC (rev 81768)
+++ CMF/branches/2.1/CMFCore/Skinnable.py	2007-11-12 15:42:35 UTC (rev 81769)
@@ -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