From b8eaeac09c286888671770e4b5a325ef7cfa79fe Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 15 Dec 2009 13:36:50 +0000 Subject: 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. --- did-controller.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'did-controller.lua') 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 -- cgit v1.2.3