Well, maybe this will explain what I want to achieve, based on latest (already working) code from trunk:<div><br></div><div>A sample of a REST app with two REST services exposed</div><div><br></div><div><a href="https://github.com/jacek99/corepost/blob/master/corepost/test/rest_resource.py">https://github.com/jacek99/corepost/blob/master/corepost/test/rest_resource.py</a></div>
<div><br></div><div>There is a generic RESTResource (an actual twisted.web Resource) that register child REST services (just regular classes).</div><div>It takes care of routing all the requests to them.</div><div><br></div>
<div>A human readable BDD that shows the unit tests for it:</div><div><a href="https://github.com/jacek99/corepost/blob/master/corepost/test/feature/rest_app.feature">https://github.com/jacek99/corepost/blob/master/corepost/test/feature/rest_app.feature</a></div>
<div><br></div><div>I am getting pretty happy with this API. It achieves what I wanted, needs more thorough testing though before I release<br>an official version with it.</div><div><br></div><div>Cheers</div><div>Jacek<br>
<br><div class="gmail_quote">On Fri, Mar 2, 2012 at 9:18 AM,  <span dir="ltr">&lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 1 Mar, 02:59 pm, <a href="mailto:jacek99@gmail.com">jacek99@gmail.com</a> wrote:<br>
&gt;That is exactly what I wanted to do (i.e. custom dispatching to child<br>
&gt;classes from a single leaf Resource).<br>
<br>
</div>This sounds like the opposite conclusion as Jonathan (and earlier, me)<br>
was suggesting.  However, you trimmed *all* context from this reply, so<br>
perhaps I am not correctly interpreting you.<br>
<br>
Anyway, good luck.<br>
<br>
Jean-Paul<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Twisted-web mailing list<br>
<a href="mailto:Twisted-web@twistedmatrix.com">Twisted-web@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br>
</div></div></blockquote></div><br></div>