From f220daa661084dba964801f174ceb8013eae41cd Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Thu, 9 Jul 2009 07:05:46 +0000 Subject: Manage existing graph cfg-files Remove/hide edit-rrd option because it donesn't work (yet) Adding roles to be able to edit files --- rrdtool-controller.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rrdtool-controller.lua') diff --git a/rrdtool-controller.lua b/rrdtool-controller.lua index d325abe..28a94f0 100644 --- a/rrdtool-controller.lua +++ b/rrdtool-controller.lua @@ -62,3 +62,9 @@ function config(self) return nil end +function editgraphcfg(self) + return controllerfunctions.handle_form(self, + function() return self.model.getgraphfile(self.clientdata.filename) end, + function() return self.model.setgraphfile() end, + self.clientdata, "Save", "Edit Config", "Configuration Saved") +end -- cgit v1.2.3