diff options
author | Mika Havela <mika.havela@gmail.com> | 2009-07-03 09:05:10 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2009-07-03 09:05:10 +0000 |
commit | d2a7cb6b8761a7dc83e208ab7094f52e03ebed89 (patch) | |
tree | 0888503df63e5824aecafab74c0eddd127d7c185 /rrdtool-controller.lua | |
parent | 59e7cf26ffd4f20174714736eb6987f0a5af336d (diff) | |
download | acf-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.lua | 5 |
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) |