[openstack-dev] class extending tables.DeleteAction not having delete method called
Kevin Benton
blak111 at gmail.com
Thu May 30 03:10:06 UTC 2013
Hello,
I'm having some trouble with the tables.DeleteAction class when I'm trying
to add another set of items to a router's detail page.
I found someone emailed the list previously with the exact same problem,
but he never followed up with code or posted a solution. That thread can be
seen here: https://lists.launchpad.net/openstack/msg18537.html
Basically, I have the items added to a routers detail page in a separate
table. Elements show up just fine, and I can even add more of them without
issues.
The only problem is with deleting. The links are generated okay, but when
the request is submitted to the server, it never seems to make it to the
"delete" method in the class I have defined so nothing happens. No
exceptions, no log entries, etc.
To demonstrate this in a simple setup, I setup the following branch off of
grizzly/stable that displays this behavior with minimal code changes.
You should be able to check it out, create a router, then click on a router
to get the router details page to see two candy bars listed. If you try to
delete one, you will just get the same page back with no change. The delete
method is just configured to log a message right now, but you can change it
to whatever you want because it never gets called.
https://github.com/blak111/horizon/commit/2a96987a95a9727cd834c7dd31a65e6d8c1efb09
Any pointers on how to get the delete request to properly call that method
would be great.
Thanks
--
Kevin Benton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130529/a2c2b843/attachment.html>
More information about the OpenStack-dev
mailing list