summaryrefslogtreecommitdiffstats
path: root/rrdtool-controller.lua
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2009-07-03 09:05:10 +0000
committerMika Havela <mika.havela@gmail.com>2009-07-03 09:05:10 +0000
commitd2a7cb6b8761a7dc83e208ab7094f52e03ebed89 (patch)
tree0888503df63e5824aecafab74c0eddd127d7c185 /rrdtool-controller.lua
parent59e7cf26ffd4f20174714736eb6987f0a5af336d (diff)
downloadacf-rrdtool-d2a7cb6b8761a7dc83e208ab7094f52e03ebed89.tar.bz2
acf-rrdtool-d2a7cb6b8761a7dc83e208ab7094f52e03ebed89.tar.xz
Functionallity to create new DB.
Still missing validation on userinput.
Diffstat (limited to 'rrdtool-controller.lua')
-rw-r--r--rrdtool-controller.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/rrdtool-controller.lua b/rrdtool-controller.lua
index 7aef79c..9d00065 100644
--- a/rrdtool-controller.lua
+++ b/rrdtool-controller.lua
@@ -29,8 +29,9 @@ function listrrd(self)
end
function createrrd(self)
- return controllerfunctions.handle_form(self, self.model.createnewrrd, self.model.write_file, self.clientdata, "Save", "Edit Interfaces file", "File saved")
-
+ return controllerfunctions.handle_form(self, self.model.createnewrrd, function(value)
+ return self.model.savenewrrd(self, value, sessiondata.userinfo.userid)
+ end, self.clientdata, "Save", "Create new RRD", "File saved")
end
function delete(self)