Module: check_mk
Branch: master
Commit: f4488b7dd14e845a96c8ce27bcba4a6111d24465
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f4488b7dd14e84…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jan 27 18:28:44 2016 +0100
pagetypes: allow custom buttons in list
---
web/htdocs/pagetypes.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/pagetypes.py b/web/htdocs/pagetypes.py
index 86876f3..1b56ef9 100644
--- a/web/htdocs/pagetypes.py
+++ b/web/htdocs/pagetypes.py
@@ -678,6 +678,9 @@ class Overridable:
config.declare_permission(permname, page.title(),
page.description(),
['admin','user','guest'])
+ @classmethod
+ def custom_list_buttons(self, instance):
+ pass
@classmethod
def page_list(self):
@@ -779,9 +782,7 @@ class Overridable:
if instance.may_delete():
html.icon_button(instance.delete_url(), _("Delete!"),
"delete")
- ### # Custom buttons - visual specific
- ### if render_custom_buttons:
- ### render_custom_buttons(visual_name, visual)
+ self.custom_list_buttons(instance)
# Internal ID of instance (we call that 'name')
table.cell(_('ID'), instance.name(), css="narrow")