Automatically disable dependent extensions
Review Request #1594 — Created May 17, 2010 and discarded — Latest diff uploaded
When an extension is disabled, all of the extensions that depend on this extension should also be disabled. I've added a function called get_dependent_extensions that returns a list of dependent extension_id's. Unfortunately, pkg_resources wouldn't give me this list easily, so I had to generate it myself. I could probably use some fancy list-comprehension to squash that double for-loop, but I figure this one is more readable. Once again, open to all suggestions and feedback.
Manual - still trying to figure out the best way to test this.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.
orig
1
2
3
djblets/extensions/base.py |
---|
djblets/extensions/templates/extensions/extension_list.html |
---|
djblets/extensions/templatetags/djblets_extensions.py |
---|