diff options
author | Mika Havela <mika.havela@gmail.com> | 2009-07-02 15:21:39 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2009-07-02 15:21:39 +0000 |
commit | b107185f3794c982ec0c988087232346e67a8203 (patch) | |
tree | dcae6bc40b003dcd5e9ad9a5b98168ab600ee8fb /rrdtool-controller.lua | |
parent | bc9c06910c0544c3f3029db287beda85afa2b542 (diff) | |
download | acf-rrdtool-b107185f3794c982ec0c988087232346e67a8203.tar.bz2 acf-rrdtool-b107185f3794c982ec0c988087232346e67a8203.tar.xz |
Adding delete() to be able to remove .rrd DB's
Hiding some debug information in the listrrd view-file.
Diffstat (limited to 'rrdtool-controller.lua')
-rw-r--r-- | rrdtool-controller.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rrdtool-controller.lua b/rrdtool-controller.lua index 56b9a1e..e565c51 100644 --- a/rrdtool-controller.lua +++ b/rrdtool-controller.lua @@ -32,3 +32,8 @@ function createrrd(self) return controllerfunctions.handle_form(self, self.model.createnewrrd, self.model.write_file, self.clientdata, "Save", "Edit Interfaces file", "File saved") end + +function delete(self) + return self:redirect_to_referrer(self.model.remove_file(self, self.clientdata.filename, sessiondata.userinfo.userid)) +end + |