reading up on LuCI CBI datatypes here:

http://luci.subsignal.org/trac/wiki/Documentation/Datatypes

and right at the top of the page is the alleged possible definition:

?Validation with arguments:
       cbi_element.datatype = "type(123, 'arg2')"

i'm looking at my fairly minimal openwrt build and, using grep, I can't seem to find a single example of that construct under my /usr/lib/lua/luci directory. does that simply mean that that object is of that data type and, additionally, must equal exactly one of the possible arguments listed? it seems unnecessarily confusing(?) to specify both an integer and a string if that's the case, unless i'm reading that totally incorrectly.

rday
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to