<html><body>
<p><font size="2" face="sans-serif">Is it possible to define a ResourceExtension with a member_action that is the same for both PUT and GET requests?  </font><br>
<br>
<font size="2" face="sans-serif">For example, let's say I want to add "foo" as a member action for images. I tried to define the extension as:</font><br>
<font size="2" face="Monospace">        res = extensions.ResourceExtension(</font><font size="2" color="#00A000" face="Monospace"><i>'images'</i></font><font size="2" face="Monospace">,</font><br>
<font size="2" face="Monospace">                MyController(),</font><br>
<font size="2" face="Monospace">                member_actions={</font><font size="2" color="#00A000" face="Monospace"><i>'foo'</i></font><font size="2" face="Monospace">:</font><font size="2" color="#00A000" face="Monospace"><i>'PUT', 'foo' :'GET'</i></font><font size="2" face="Monospace">},</font><br>
<font size="2" face="Monospace">                collection_actions={})</font><br>
<font size="2" face="sans-serif">But the mapper only finds my foo method for either the PUT or the GET and not both (depending on whether the method has declared a body parameter).</font><br>
<br>
<font size="2" face="sans-serif">I'd like to use the same URL (/images/<id>/foo) for both PUT and GET requests.</font><br>
<font size="2" face="sans-serif">It works if I define 2 different controllers with the PUT in one and GET in the other, but it seems like there should be a better way.</font><br>
<font size="2" face="sans-serif">Any ideas?</font><br>
<font size="2" face="sans-serif">Thanks.</font><br>
<font size="2" face="sans-serif">-Paul</font><br>
</body></html>