Hi Kevin-<div><br></div><div>Do we have any Resource extension in the contrib directory for reference, </div><div><br></div><div>Kindly please point me the best resource extension example for a good startup. Also, will the URL of type "/server/metadetail?key1=value1&key2=value2" work with resource extension.</div>
<div><br></div><div>Please help me understand these points.</div><div><br></div><div>Thanking you for the help.</div><div><br></div><div>-</div><div>Trinath<br><br><div class="gmail_quote">On Mon, Sep 24, 2012 at 8:36 PM, Kevin L. Mitchell <span dir="ltr"><<a href="mailto:kevin.mitchell@rackspace.com" target="_blank">kevin.mitchell@rackspace.com</a>></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 Mon, 2012-09-24 at 15:09 +0530, Trinath Somanchi wrote:<br>
> Here, The URI, /server/metadetail? is not being mapped to the method<br>
> "metadetail()" method present in the   extension.<br>
><br>
> Also, its that, the WSGI is mapping, the URI to "show" method rather<br>
> than the "metadetail" method.  'wsgiorg.routing_args':<br>
> (<routes.util.URLGenerator object at 0x36f64d0>, {'action': u'show',<br>
> 'controller': <nova.api.openstack.wsgi.Resource object at 0x4644750>,<br>
> 'project_id': u'e216fcb54dc944a8ab16e4e325299643', 'id':<br>
> u'metadetail'})<br>
><br>
> Please guide me on how to fix the issue such that the URL with<br>
> "/server/metadetail" is mapped to the "metadetail" method in the new<br>
> extension.<br>
<br>
</div>Unfortunately, this isn't going to be possible using a<br>
ControllerExtension, because of the way nova sets up its routes—there's<br>
no way to merge the controller actions from the ControllerExtension with<br>
the creation of the server resource.  Try a ResourceExtension with the<br>
servers resource as the parent; that may work better for you.<br>
<span class="HOEnZb"><font color="#888888">--<br>
Kevin L. Mitchell <<a href="mailto:kevin.mitchell@rackspace.com">kevin.mitchell@rackspace.com</a>><br>
<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>----------------------------------------------<br>Trinath Somanchi,<div>+91 9866 235 130</div><br>
</div>