Log message for revision 66276: Get rid of monkey which is unnecessary in Zope 2.8
Changed: U Products.Five/branches/1.0/__init__.py D Products.Five/branches/1.0/monkey.py -=- Modified: Products.Five/branches/1.0/__init__.py =================================================================== --- Products.Five/branches/1.0/__init__.py 2006-03-31 16:50:06 UTC (rev 66275) +++ Products.Five/branches/1.0/__init__.py 2006-03-31 16:50:28 UTC (rev 66276) @@ -18,12 +18,8 @@ import Acquisition from Globals import INSTANCE_HOME -import monkey import zcml -# trigger monkey patches -monkey.monkeyPatch() - # public API provided by Five # usage: from Products.Five import <something> from browser import BrowserView Deleted: Products.Five/branches/1.0/monkey.py =================================================================== --- Products.Five/branches/1.0/monkey.py 2006-03-31 16:50:06 UTC (rev 66275) +++ Products.Five/branches/1.0/monkey.py 2006-03-31 16:50:28 UTC (rev 66276) @@ -1,40 +0,0 @@ -############################################################################## -# -# Copyright (c) 2004, 2005 Zope Corporation and Contributors. -# All Rights Reserved. -# -# This software is subject to the provisions of the Zope Public License, -# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED -# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS -# FOR A PARTICULAR PURPOSE. -# -############################################################################## -"""Bad monkey! - -$Id$ -""" -def monkeyPatch(): - """Trigger all monkey patches needed to make Five work. - - This adjusts Zope 2 classes to make them work with Zope 3. - - Monkey patches are kept to a minimum level. - """ - - from ZPublisher.HTTPRequest import HTTPRequest - - def getPresentationSkin(self): - return getattr(self, '_presentation_skin', None) - - def setPresentationSkin(self, skin): - self._presentation_skin = skin - - def getURL(self): - return self.URL - - HTTPRequest.getPresentationSkin = getPresentationSkin - HTTPRequest.setPresentationSkin = setPresentationSkin - HTTPRequest.__contains__ = lambda self, key: self.has_key(key) - HTTPRequest.getURL = getURL _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins