diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-04-03 13:28:00 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-04-03 13:28:00 +0000 |
commit | a85ec38da54b095764bfbc55e6697f7ab44507ef (patch) | |
tree | b396580128ffa34a49a5429adbea86daeed60915 | |
parent | 4c2e2f2a1509dc7a020a245ee549bbbbee27d4be (diff) | |
download | acf-shorewall-a85ec38da54b095764bfbc55e6697f7ab44507ef.tar.bz2 acf-shorewall-a85ec38da54b095764bfbc55e6697f7ab44507ef.tar.xz |
Renamed functions that had _ in the functionname.
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@908 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r-- | shorewall-controller.lua | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/shorewall-controller.lua b/shorewall-controller.lua index f515719..2a5e99f 100644 --- a/shorewall-controller.lua +++ b/shorewall-controller.lua @@ -61,7 +61,7 @@ end -- ################################################################################ -- PUBLIC FUNCTIONS -function edit_records(self,types,record,errormessage) +function editrecords(self,types,record,errormessage) local recorddetails = {} local edit = {} local config=self.model:getconfig() @@ -523,9 +523,9 @@ function config(self) end -- If we previously made some changes, report this to user if ((self.clientdata.cmdsave) or (self.clientdata.cmddelete)) and not (savesuccess) then - self.conf.action = "edit_records" + self.conf.action = "editrecords" self.conf.type = "redir" - return edit_records(self,self.clientdata.filename, self.clientdata.orgrecord,tostring((configmessage.errtxt or ""))) + return editrecords(self,self.clientdata.filename, self.clientdata.orgrecord,tostring((configmessage.errtxt or ""))) end local config=self.model:getconfig() @@ -604,45 +604,45 @@ function config(self) -- Redirect if button is pressed if (self.clientdata.params_cmd) and (self.clientdata.params) then - self.conf.action = "edit_records" + self.conf.action = "editrecords" self.conf.type = "redir" - return edit_records(self,"params", self.clientdata.params) + return editrecords(self,"params", self.clientdata.params) elseif (self.clientdata.params_cmd) and not (self.clientdata.params) then config.params_cmd.errtxt = "You need to specify a record to edit!" end -- Redirect if button is pressed if (self.clientdata.interfaces_cmd) and (self.clientdata.interfaces) then - self.conf.action = "edit_records" + self.conf.action = "editrecords" self.conf.type = "redir" - return edit_records(self,"interfaces", self.clientdata.interfaces) + return editrecords(self,"interfaces", self.clientdata.interfaces) elseif (self.clientdata.interfaces_cmd) and not (self.clientdata.interfaces) then config.interfaces_cmd.errtxt = "You need to specify a record to edit!" end -- Redirect if button is pressed if (self.clientdata.zones_cmd) and (self.clientdata.zones) then - self.conf.action = "edit_records" + self.conf.action = "editrecords" self.conf.type = "redir" - return edit_records(self,"zones", self.clientdata.zones) + return editrecords(self,"zones", self.clientdata.zones) elseif (self.clientdata.zones_cmd) and not (self.clientdata.zones) then config.zones_cmd.errtxt = "You need to specify a record to edit!" end -- Redirect if button is pressed if (self.clientdata.policy_cmd) and (self.clientdata.policy) then - self.conf.action = "edit_records" + self.conf.action = "editrecords" self.conf.type = "redir" - return edit_records(self,"policy", self.clientdata.policy) + return editrecords(self,"policy", self.clientdata.policy) elseif (self.clientdata.policy_cmd) and not (self.clientdata.policy) then config.policy_cmd.errtxt = "You need to specify a record to edit!" end -- Redirect if button is pressed if (self.clientdata.rules_cmd) and (self.clientdata.rules) then - self.conf.action = "edit_records" + self.conf.action = "editrecords" self.conf.type = "redir" - return edit_records(self,"rules", self.clientdata.rules) + return editrecords(self,"rules", self.clientdata.rules) elseif (self.clientdata.rules_cmd) and not (self.clientdata.rules) then config.rules_cmd.errtxt = "You need to specify a record to edit!" end |