Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
7a063a5e
Commit
7a063a5e
authored
Apr 04, 2007
by
Martijn Pieters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Thanks to _facade, the request argument is always present in *args
parent
d47d90f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
lib/python/AccessControl/requestmethod.py
lib/python/AccessControl/requestmethod.py
+1
-4
No files found.
lib/python/AccessControl/requestmethod.py
View file @
7a063a5e
...
...
@@ -51,10 +51,7 @@ def requestmethod(*methods):
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment