[z3-checkins] r10868 - z3/Five/trunk

faassen at codespeak.net faassen at codespeak.net
Tue Apr 19 20:32:34 MEST 2005


Author: faassen
Date: Tue Apr 19 20:32:33 2005
New Revision: 10868

Modified:
   z3/Five/trunk/monkey.py
Log:
Add monkey patch to support key in form, which is used by at least the
checkbox widget in Zope 3 (when the checkbox widget is in the off state).


Modified: z3/Five/trunk/monkey.py
==============================================================================
--- z3/Five/trunk/monkey.py	(original)
+++ z3/Five/trunk/monkey.py	Tue Apr 19 20:32:33 2005
@@ -28,3 +28,5 @@
 
     HTTPRequest.getPresentationSkin = getPresentationSkin
     HTTPRequest.setPresentationSkin = setPresentationSkin
+
+    HTTPRequest.__contains__ = lambda self, key: self.has_key(key)


More information about the z3-checkins mailing list