diff options
author | Mika Havela <mika.havela@gmail.com> | 2009-07-09 07:05:46 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2009-07-09 07:05:46 +0000 |
commit | f220daa661084dba964801f174ceb8013eae41cd (patch) | |
tree | 1079c77d5dcefe823091595119cfd8b0faceee1b /rrdtool-controller.lua | |
parent | 3409cc4583211ddfa97bcd41dc7f0b12dd5e09d4 (diff) | |
download | acf-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.lua | 6 |
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 |