comparison web/src/luan/modules/web/HttpLuan.java @ 178:2c08e7e27a70

minor - rename web fn from "page" to "service" git-svn-id: https://luan-java.googlecode.com/svn/trunk@179 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 23 Jun 2014 20:41:08 +0000
parents bdbd4740121f
children 75750ceb45ee
comparison
equal deleted inserted replaced
177:02859b3e9d80 178:2c08e7e27a70
66 DeepCloner cloner = new DeepCloner(); 66 DeepCloner cloner = new DeepCloner();
67 luan = cloner.deepClone(luan); 67 luan = cloner.deepClone(luan);
68 session.putValue("luan",luan); 68 session.putValue("luan",luan);
69 } 69 }
70 tbl = (LuanTable)PackageLuan.require(luan,modName); 70 tbl = (LuanTable)PackageLuan.require(luan,modName);
71 fn = (LuanFunction)tbl.get("page"); 71 fn = (LuanFunction)tbl.get("service");
72 } else { 72 } else {
73 fn = (LuanFunction)tbl.get("page"); 73 fn = (LuanFunction)tbl.get("service");
74 if( fn == null ) 74 if( fn == null )
75 throw luan.exception( "function 'page' is not defined" ); 75 throw luan.exception( "function 'service' is not defined" );
76 DeepCloner cloner = new DeepCloner(); 76 DeepCloner cloner = new DeepCloner();
77 luan = cloner.deepClone(luan); 77 luan = cloner.deepClone(luan);
78 fn = cloner.get(fn); 78 fn = cloner.get(fn);
79 } 79 }
80 } 80 }