changeset 218:92f5d74697f8

change Http.session_attribute to Http.session git-svn-id: https://luan-java.googlecode.com/svn/trunk@219 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Tue, 15 Jul 2014 20:19:36 +0000
parents a608066395c5
children f9e3e64132e1
files web/src/luan/modules/web/HttpLuan.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/web/src/luan/modules/web/HttpLuan.java	Tue Jul 15 06:16:40 2014 +0000
+++ b/web/src/luan/modules/web/HttpLuan.java	Tue Jul 15 20:19:36 2014 +0000
@@ -87,7 +87,7 @@
 			module.put( "request", lib.requestTable() );
 			module.put( "response", lib.responseTable() );
 			module.put( "cookie", lib.cookieTable() );
-			module.put( "session_attribute", lib.sessionTable() );
+			module.put( "session", lib.sessionTable() );
 /*
 			module.put( "write", new LuanJavaFunction(
 				HttpLuan.class.getMethod( "text_write", LuanState.class, new Object[0].getClass() ), lib
@@ -173,10 +173,10 @@
 
 	private LuanTable sessionTable() throws NoSuchMethodException {
 		LuanTable tbl = new LuanTable();
-		tbl.put( "get", new LuanJavaFunction(
+		tbl.put( "get_attribute", new LuanJavaFunction(
 			HttpLuan.class.getMethod("get_session_attribute",String.class), this
 		) );
-		tbl.put( "set", new LuanJavaFunction(
+		tbl.put( "set_attribute", new LuanJavaFunction(
 			HttpLuan.class.getMethod("set_session_attribute",String.class, Object.class), this
 		) );
 		return tbl;