summaryrefslogtreecommitdiffstats
path: root/did-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-12-15 13:36:50 +0000
committerTed Trask <ttrask01@yahoo.com>2009-12-15 13:36:50 +0000
commitb8eaeac09c286888671770e4b5a325ef7cfa79fe (patch)
treeac37c313c95d304054f67ea87b69aac3513bb5f8 /did-controller.lua
parentb6f00517ad0a3ef7e3bd32e0d3a99cfa558d6dc2 (diff)
downloadacf-did-b8eaeac09c286888671770e4b5a325ef7cfa79fe.tar.bz2
acf-did-b8eaeac09c286888671770e4b5a325ef7cfa79fe.tar.xz
Fixed status view and added assign action.
Status view will only show create database if it doesn't exist. Assign action will overwrite an existing definition / rules.
Diffstat (limited to 'did-controller.lua')
-rw-r--r--did-controller.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/did-controller.lua b/did-controller.lua
index a2a16f9..7b27837 100644
--- a/did-controller.lua
+++ b/did-controller.lua
@@ -28,6 +28,10 @@ function createdefinition(self)
return controllerfunctions.handle_form(self, self.model.getdefinition, self.model.savedefinition, self.clientdata, "Save", "Create Definition", "Definition Created")
end
+function assigndefinition(self)
+ return controllerfunctions.handle_form(self, self.model.getdefinition, self.model.updatedefinition, self.clientdata, "Save", "Assign Definition", "Definition Saved")
+end
+
function newdefinition(self)
local retval = controllerfunctions.handle_form(self, self.model.getunuseddefinition, self.model.setunuseddefinition, self.clientdata, "Select", "Create New Definition")
if retval.value.did and not retval.errtxt then