Bug#756269: Strange "None" word at the bottom of packages page
Hi,
The following patch resolves the issue, it is a proof of concept as there is
probably a more elegant solution (but I am not aware of six habits yet).
Cheers,
Christophe
---
distro_tracker/core/panels.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/distro_tracker/core/panels.py b/distro_tracker/core/panels.py
index 0b5a8c0..c362c36 100644
--- a/distro_tracker/core/panels.py
+++ b/distro_tracker/core/panels.py
@@ -648,7 +648,9 @@ class ListPanelMeta(PluginRegistry):
)
-class ListPanel(six.with_metaclass(ListPanelMeta, BasePanel)):
+SixListPanelMeta = six.with_metaclass(ListPanelMeta, BasePanel)
+
+class ListPanel(SixListPanelMeta):
"""
The base class for panels which would like to present an extensible list of
items.
@@ -700,7 +702,7 @@ class ListPanel(six.with_metaclass(ListPanelMeta, BasePanel)):
# This should be a sort of "abstract" panel which should never be rendered on
# its own, so it is removed from the list of registered panels.
-ListPanel.unregister_plugin()
+SixListPanelMeta.unregister_plugin()
class LinksPanel(ListPanel):
--
2.0.1
Reply to: