summaryrefslogtreecommitdiffstats
path: root/rrdtool-controller.lua
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2009-07-09 07:05:46 +0000
committerMika Havela <mika.havela@gmail.com>2009-07-09 07:05:46 +0000
commitf220daa661084dba964801f174ceb8013eae41cd (patch)
tree1079c77d5dcefe823091595119cfd8b0faceee1b /rrdtool-controller.lua
parent3409cc4583211ddfa97bcd41dc7f0b12dd5e09d4 (diff)
downloadacf-rrdtool-f220daa661084dba964801f174ceb8013eae41cd.tar.bz2
acf-rrdtool-f220daa661084dba964801f174ceb8013eae41cd.tar.xz
Manage existing graph cfg-files
Remove/hide edit-rrd option because it donesn't work (yet) Adding roles to be able to edit files
Diffstat (limited to 'rrdtool-controller.lua')
-rw-r--r--rrdtool-controller.lua6
1 files changed, 6 insertions, 0 deletions
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