comparison web/src/luan/modules/web/web_shell.luan @ 222:b76fcb72d97d

add AbstractLuanTable and improve HttpLuan git-svn-id: https://luan-java.googlecode.com/svn/trunk@223 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 21 Jul 2014 02:23:05 +0000
parents 04b86428dc50
children 82a3ebcfbafa
comparison
equal deleted inserted replaced
221:ec016471c6eb 222:b76fcb72d97d
13 history[#history+1] = v 13 history[#history+1] = v
14 end 14 end
15 end 15 end
16 16
17 function service() 17 function service()
18 if Http.request.get_parameter("clear") ~= nil then 18 if Http.request.parameters.clear ~= nil then
19 history = {} 19 history = {}
20 else 20 else
21 local cmd = Http.request.get_parameter("cmd") 21 local cmd = Http.request.parameters.cmd
22 if cmd ~= nil then 22 if cmd ~= nil then
23 print( "% "..cmd ) 23 print( "% "..cmd )
24 try 24 try
25 local line = load(cmd,"<web_shell>",env,true); 25 local line = load(cmd,"<web_shell>",env,true);
26 Debug.print_if_something( line() ) 26 Debug.print_if_something( line() )