Before config.add_debugtoolbar_panel, the way to add custom panels was via
config.registry.settings['debugtoolbar.panels'].append(PANEL)
or
config.registry.settings['debugtoolbar.extra_panels'].append(PANEL)
The end behavior of this, was an adjustment to the application config (.ini but now it can by other formats) value of debugtoolbar.panels only affected the ordering/enablement of the default Pyramid panels.
After this api change, everything added via add_debugtoolbar_panel (which happens transparently for 3rd party items via debugtoolbar.includes in the config) goes into the generic panels list. Consequently, utilizing the config value to change the ordering of debugtoolbar.panels will remove any of the panels that were added in debugtoolbar.includes UNLESS they are explicitly named there.
I propose some configuration mechanism that would affect the ordering of panels, so developer can more-easily reorder the panels without having to declare them multiple times.
perhaps something like this...
debugtoolbar.panels_reorder The list of registered panels is reordered to have these elements, in this order, first. panels that are not listed appear afterwards.
debugtoolbar.panels_removePanels listed here will be removed.
Before
config.add_debugtoolbar_panel, the way to add custom panels was viaor
The end behavior of this, was an adjustment to the application config (.ini but now it can by other formats) value of
debugtoolbar.panelsonly affected the ordering/enablement of the default Pyramid panels.After this api change, everything added via
add_debugtoolbar_panel(which happens transparently for 3rd party items viadebugtoolbar.includesin the config) goes into the genericpanelslist. Consequently, utilizing the config value to change the ordering ofdebugtoolbar.panelswill remove any of the panels that were added indebugtoolbar.includesUNLESS they are explicitly named there.I propose some configuration mechanism that would affect the ordering of panels, so developer can more-easily reorder the panels without having to declare them multiple times.
perhaps something like this...
debugtoolbar.panels_reorderThe list of registered panels is reordered to have these elements, in this order, first. panels that are not listed appear afterwards.debugtoolbar.panels_removePanels listed here will be removed.