comparison web/src/luan/modules/web/HttpLuan.java @ 202:75750ceb45ee

add LuanState.registry git-svn-id: https://luan-java.googlecode.com/svn/trunk@203 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 04 Jul 2014 17:18:39 +0000
parents 2c08e7e27a70
children a608066395c5
comparison
equal deleted inserted replaced
201:27abb3746917 202:75750ceb45ee
77 luan = cloner.deepClone(luan); 77 luan = cloner.deepClone(luan);
78 fn = cloner.get(fn); 78 fn = cloner.get(fn);
79 } 79 }
80 } 80 }
81 81
82 LuanTable module = (LuanTable)luan.loaded().get("web/Http"); 82 LuanTable module = (LuanTable)PackageLuan.loaded(luan).get("web/Http");
83 if( module == null ) 83 if( module == null )
84 throw luan.exception( "module 'web/Http' not defined" ); 84 throw luan.exception( "module 'web/Http' not defined" );
85 HttpLuan lib = new HttpLuan(request,response); 85 HttpLuan lib = new HttpLuan(request,response);
86 try { 86 try {
87 module.put( "request", lib.requestTable() ); 87 module.put( "request", lib.requestTable() );