Open twisted-trac opened 13 years ago
@jyknight commented |
---|
This doesn't seem like a bug, but rather an unfortunate attribute, and documentation that needs clarification.
The allowedMethods attribute's purpose is not to decide what methods are allowed -- render can do that by itself, I don't see why an additional filter for that is desirable.
Resource.render
only consultsallowedMethods
after looking for arender_
method. If arender_FOO
method exists, it's invoked;allowedMethods
is only used to populate the Allow header in the response.To quote wsanchez from #3684:
Searchable metadata
``` trac-id__4958 4958 type__defect defect reporter__washort washort priority__normal normal milestone__ branch__ branch_author__ status__new new resolution__None None component__web web keywords__ time__1300216844000000 1300216844000000 changetime__1300493988000000 1300493988000000 version__None None owner__ cc__jknight ```