Log message for revision 73997:
  Thanks to _facade, the request argument is always present in *args

Changed:
  U   Zope/trunk/lib/python/AccessControl/requestmethod.py

-=-
Modified: Zope/trunk/lib/python/AccessControl/requestmethod.py
===================================================================
--- Zope/trunk/lib/python/AccessControl/requestmethod.py        2007-04-04 
07:59:42 UTC (rev 73996)
+++ Zope/trunk/lib/python/AccessControl/requestmethod.py        2007-04-04 
09:00:13 UTC (rev 73997)
@@ -51,10 +51,7 @@
             arglen -= len(defaults)
             
         def _curried(*args, **kw):
-            request = None
-            if len(args) > r_index:
-                request = args[r_index]
-                
+            request = args[r_index]
             if IBrowserRequest.providedBy(request):
                 if request.method not in methods:
                     raise Forbidden('Request must be %s' % methodsstr)

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to