Changeset 6027
- Timestamp:
- 04/05/10 18:44:57 (3 years ago)
- Location:
- luci/branches/luci-0.9/libs/uvl
- Files:
-
- 3 modified
-
luasrc/uvl.lua (modified) (1 diff)
-
luasrc/uvl/errors.lua (modified) (2 diffs)
-
root/usr/bin/uvl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
luci/branches/luci-0.9/libs/uvl/luasrc/uvl.lua
r5864 r6027 279 279 for k, v in pairs(section:config()) do 280 280 local oo = section:option(k) 281 if k:byte(1) == 46 and not self.beenthere[oo:cid()] then281 if k:byte(1) ~= 46 and not self.beenthere[oo:cid()] then 282 282 section:error(ERR('OPT_UNKNOWN', oo)) 283 283 end -
luci/branches/luci-0.9/libs/uvl/luasrc/uvl/errors.lua
r5912 r6027 20 20 local string = require "string" 21 21 22 local luci, tonumber, unpack, ipairs, type =23 luci, tonumber, unpack, ipairs, type22 local luci, tonumber, tostring, unpack, ipairs, type = 23 luci, tonumber, tostring, unpack, ipairs, type 24 24 25 25 module "luci.uvl.errors" … … 129 129 :gsub("%%S", self.stype or '(nil)') 130 130 :gsub("%%o", self.option or '(nil)') 131 :gsub("%%v", self.value or '(nil)')131 :gsub("%%v", self.value and tostring(self.value) or '(nil)') 132 132 :gsub("%%t", self.object and self.object:type() or '(nil)' ) 133 133 :gsub("%%T", self.object and self.object:title() or '(nil)' ) -
luci/branches/luci-0.9/libs/uvl/root/usr/bin/uvl
r4084 r6027 217 217 218 218 ok, err = uvl:validate_config( cso[1], uci:get_all(cso[1]) ) 219 if err then err.code = luci.uvl.errors.ERR_SCHEMEend219 if err then err.code = 'SCHEME' end 220 220 else 221 221 ok, err = uvl:validate( unpack(cso) )
