[luci] Where did this funny CFG02CD74 heading come from?

Steven Barth steven at midlink.org
Tue Aug 25 20:53:16 CEST 2009


This is the temporary name of the anonymous section.
You can get rid of it by telling the CBI to handle sections as anoynmous and 
thus not showing any temporary names

> local uci = require "luci.model.uci".cursor()
>
> m = Map("distro", "Distro", "Identify the distribution package, so UI
> can be custom tailored.")
>
> s = m:section(TypedSection, "distro", "Distro Configuration", "Tailor
> the UI to the requirements of a specific distribution.")
s.anonymous = true
> s.addremove = false
> s:option(Value, "distroname", "Distro Name", "Change the name of the
> distro-specific configuration for testing and demonstration purposes.")
>
> return m -- Returns the map
> -----------------------------------------------------------------


Regards
Cyrus


More information about the luci mailing list