[OpenWrt-Devel] Save & Apply did not restart the syslog daemon!

2013-03-24 Thread . Elvis
Hi all, When i change System -> System -> Logging -> Log output level Why luci did not restart the syslog daemon? thanks all, ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-dev

[OpenWrt-Devel] Lua function get status by interface?

2013-03-22 Thread . Elvis
Hi all, The luci have this function? get status(include ipaddr,netmask,gatway) by interface? Like get_wannet () this function. function get_status_by_interface(input interface) thanks all, ___ openwrt-devel mailing list openwrt-devel@

[OpenWrt-Devel] about auto logout!

2013-02-21 Thread . Elvis
Hi I have question about auto logout. When my page in the execution XHR.poll, auto logout no effect, and this is normal or can be modified. Where this code? thanks all! ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.ope

[OpenWrt-Devel] about cfgsections question!

2013-02-03 Thread . Elvis
Hi all, I have two sections, the following program, s2 = m:section(TypedSection, "codemanage", translate("Change code")) s2.anonymous = true s2.addremove = false function s2.cfgsections()-> when i add cfgsections,depends unavailable!

[OpenWrt-Devel] How to reload the model page?

2013-01-22 Thread . Elvis
Hi all, How to perform if I need to set completed need to re-load the model page? Because some values will not change on model page! thanks all, ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mai

[OpenWrt-Devel] How to display the execution graph?

2013-01-22 Thread . Elvis
Hi all, Such as pictures of the attachment! I want to show the execution status in function "o.write" when I execute my C API ? When the C API implementation of the latter will auto perform a save config and will display as attached status. Because when execution C API function there is a delay ti

[OpenWrt-Devel] Gray out objects in the UI?

2013-01-22 Thread . Elvis
Hi all, How to gray out in the UI on a object, the like option Value, or option ListValue object?(gray out means users can see input text but can not change any values) In luci model, Have gray out design can use it? thanks, ___ openwrt

[OpenWrt-Devel] How to check the field is empty?

2013-01-21 Thread . Elvis
hi all, If the field does not enter a value, how can display a warning message("You must enter a value") ! code = s:option(Value, "code", translate("Code")) code.password = true thanks all, ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.

[OpenWrt-Devel] about m.uci:get!

2013-01-20 Thread . Elvis
Hi all, Why I can not get "pinpro" value? I got empty! /etc/config/verify config pin option pincode1 '1' option oldcode '11' option protect 'disable' In the model/cbi function code.write(self, section, value) local pinpro = m.uci:get("verify", "pin", "protect") --

Re: [OpenWrt-Devel] how to get config option value on model ListValue!

2013-01-06 Thread . Elvis
thank you Jow! 2013/1/4 Jo-Philipp Wich > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi. > > > how to get the value of the option name? Can i use foreach? follow > > is my program [...] > > m.uci:foreach("dhcp", "host", > function(section) > profile:value(section['name']) >

[OpenWrt-Devel] how to get config option value on model ListValue!

2013-01-04 Thread . Elvis
hi all , The following is my dhcp config config host option name 'q' option mac '64:31:50:93:f5:2c' option ip '192.168.11.123' config host option name 'w' option mac '64:31:50:93:f5:2c' option ip '192.168.11.124' how to get the value of the option

Re: [OpenWrt-Devel] openwrt language no change!

2012-12-21 Thread . Elvis
Forget it! bye! 2012/12/21 Bastian Bittorf > * . Elvis [21.12.2012 09:58]: > > my .config > > first: this is devel here, so switch to a recent build, yours is ~3 month > old. > > analysis: > so you choosed: japanese, english, chinese

Re: [OpenWrt-Devel] openwrt language no change!

2012-12-21 Thread . Elvis
Are using LuCI? Yes have you installed the language files? Yes There are many *. lmo file under the path /usr/lib/lua/luci/i18n/ ! thanks 2012/12/21 Bastian Bittorf > * . Elvis [21.12.2012 08:54]: > > When I select other languages, why not change? > > Are using L

[OpenWrt-Devel] openwrt language no change!

2012-12-20 Thread . Elvis
hi all, When I select other languages, why not change? thanks all ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] about openwrt multiple language in html(view)!

2012-12-20 Thread . Elvis
Sorry, Can i find some sample code in openwrt? I still do not have the idea? thanks 2012/12/20 Manuel Munz > On 20.12.2012 11:16, . Elvis wrote: > > hi all, How to achieve multiple languages in html(templete/view)? > > or can use i18n to achieve in html? > >

[OpenWrt-Devel] about openwrt multiple language in html(view)!

2012-12-20 Thread . Elvis
hi all, How to achieve multiple languages in html(templete/view)? or can use i18n to achieve in html? example: <%:Restore backup%>: how to translate (Restore backup) wording to different language! thanks all

Re: [OpenWrt-Devel] about print in uci.lua!

2012-12-09 Thread . Elvis
I added a print, but in my browser development tools do not see any messages(no error), just want to know the "%s" value. thank you again! elvis 2012/12/8 David Favro > On 12/07/2012 05:04 AM, . Elvis wrote: > >> i want print follow command "%s",how to do

[OpenWrt-Devel] about print in uci.lua!

2012-12-07 Thread . Elvis
Hi all , i want print follow command "%s",how to do print? return os.execute("/sbin/luci-reload %s >/dev/null 2>&1" % table.concat(configlist, " ")) thanks all! elvis ___

[OpenWrt-Devel] UI how to call cbi.lua in Map.set!

2012-12-04 Thread . Elvis
Hi all, I do not understand the UI is how to call /usr/lib/lua/luci/cbi.lua in Map.set stored value? Lua is on which side to execute script restart service? thanks all, elvis ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https

Re: [OpenWrt-Devel] how add 'print' to /usr/lib/lua/luci/model/uci.lua??

2012-12-03 Thread . Elvis
thank you ynezz!! elvis 2012/12/4 Petr Štetiar > . Elvis [2012-12-03 10:28:25]: > > > Hi all, > > > > when i add above > > > > 'print("hello")' in /usr/lib/lua/luci/model/uci.lua > > You need to define it first at the to

Re: [OpenWrt-Devel] about Luci Inter-process communication!

2012-12-02 Thread . Elvis
Hi jow, In the UI when I press sava & apply, submit type will go to perform which function or shell to save value? I can not find the place of the stored-value? thank you again!!! elvis 2012/11/30 Jo-Philipp Wich > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi. &

[OpenWrt-Devel] how add 'print' to /usr/lib/lua/luci/model/uci.lua??

2012-12-02 Thread . Elvis
ption: /usr/lib/lua/luci/model/uci.lua:71: attempt to call global 'print' (a nil value) stack traceback: [C]: in function 'assert' /usr/lib/lua/luci/dispatcher.lua:448: in function 'dispatch' /usr/lib/lua/luci/dispatcher.lua:195: in function w

[OpenWrt-Devel] about Luci Inter-process communication!

2012-11-29 Thread . Elvis
Hi all , luci is how to carry out the action and save the settings from UI to linux, it ipc how architecture? thanks all! elvis ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel