[Zope-Checkins]
SVN: Zope/trunk/lib/python/AccessControl/requestmethod.py
Thanks to _facade, the request argument is always present in *args
Martijn Pieters
mj at zopatista.com
Wed Apr 4 05:00:15 EDT 2007
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)
More information about the Zope-Checkins
mailing list