diff options
author | Steven Barth <steven@midlink.org> | 2008-08-14 17:16:56 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-14 17:16:56 +0000 |
commit | d915e6e1d7421f366ca61bf081b6ca0d29945ec1 (patch) | |
tree | cbf7b67aafa6e191669d1eff71f1925499c8b5f8 /libs/cbi/luasrc | |
parent | f5ea976058f1de8d8ddb1eb1fcf3d12c8b6fa846 (diff) |
Converted IPKG configuration to CBI model
Removed abandoned code
Diffstat (limited to 'libs/cbi/luasrc')
-rw-r--r-- | libs/cbi/luasrc/cbi.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index 399f486752..8816b11b7b 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -140,6 +140,10 @@ function Template.__init__(self, template) self.template = template end +function Template.render(self) + luci.template.render(self.template, {self=self}) +end + --[[ Map - A map describing a configuration file @@ -260,7 +264,9 @@ function SimpleForm.parse(self, ...) local valid = true for i, v in ipairs(self.children) do - valid = valid and not v.tag_missing[1] and not v.tag_invalid[1] + valid = valid + and (not v.tag_missing or not v.tag_missing[1]) + and (not v.tag_invalid or not v.tag_invalid[1]) end local state = |