diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-12-15 13:36:50 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-12-15 13:36:50 +0000 |
commit | b8eaeac09c286888671770e4b5a325ef7cfa79fe (patch) | |
tree | ac37c313c95d304054f67ea87b69aac3513bb5f8 /did-controller.lua | |
parent | b6f00517ad0a3ef7e3bd32e0d3a99cfa558d6dc2 (diff) | |
download | acf-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.lua | 4 |
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 |