[luci] Save and Apply, Save and Reset does not work with a list on screen

Hanno Schupp hanno.schupp at gmail.com
Thu Sep 17 02:34:34 CEST 2009


I have a custom screen that has a number of fields on it, some of which are
defined as list in the data schema like so:

...

config variable

        option name     'whitelist'

        option title    'Allowed MAC addresses'

        option description      'List of devices identified by MAC addresses
which will bypass hotspot authentication (white list)'

        option section  'chillifire.config'

        option datatype 'string'

        option type     'list'

...

 

In the model they are defined as dynamic list like so:

...

s1:option( DynamicList, "whitelist" )

...

 

The issue is that as soon as I add a value in the list, the buttons at the
bottom (Reset, Save and Save and Apply) no longer work as expected. Reset
does not react at all, Save and Save and Apply refresh the page but do not
save the values. Strangely, when pressing the 'Unsaved Changes' Save an
Apply drop down menu, changes are saved and applied as expected.

 

As soon as I remove any entries from list fields the strange behaviour
stops.

 

Surely that is a bug, right? I would love to open a ticket on Luci Trac, but
have not login there.

 

Any workarounds or fixes in store? Please advise

 

Hanno Schupp

Chillifire

 

PS: I am using branch 0.9+svn5333.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.subsignal.org/pipermail/luci/attachments/20090917/a97346a1/attachment.htm 


More information about the luci mailing list