changeset 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 02859b3e9d80
children bf9c7111a371
files core/src/luan/init.luan web/src/luan/modules/web/HttpLuan.java web/src/luan/modules/web/web_run.luan web/src/luan/modules/web/web_shell.luan
diffstat 4 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
diff -r 02859b3e9d80 -r 2c08e7e27a70 core/src/luan/init.luan
--- a/core/src/luan/init.luan	Mon Jun 23 07:57:12 2014 +0000
+++ b/core/src/luan/init.luan	Mon Jun 23 20:41:08 2014 +0000
@@ -104,6 +104,3 @@
 	end
 end
 
-
--- import modules
-Package.global_import("Reactionary")
diff -r 02859b3e9d80 -r 2c08e7e27a70 web/src/luan/modules/web/HttpLuan.java
--- a/web/src/luan/modules/web/HttpLuan.java	Mon Jun 23 07:57:12 2014 +0000
+++ b/web/src/luan/modules/web/HttpLuan.java	Mon Jun 23 20:41:08 2014 +0000
@@ -68,11 +68,11 @@
 					session.putValue("luan",luan);
 				}
 				tbl = (LuanTable)PackageLuan.require(luan,modName);
-				fn = (LuanFunction)tbl.get("page");
+				fn = (LuanFunction)tbl.get("service");
 			} else {
-				fn = (LuanFunction)tbl.get("page");
+				fn = (LuanFunction)tbl.get("service");
 				if( fn == null )
-					throw luan.exception( "function 'page' is not defined" );
+					throw luan.exception( "function 'service' is not defined" );
 				DeepCloner cloner = new DeepCloner();
 				luan = cloner.deepClone(luan);
 				fn = cloner.get(fn);
diff -r 02859b3e9d80 -r 2c08e7e27a70 web/src/luan/modules/web/web_run.luan
--- a/web/src/luan/modules/web/web_run.luan	Mon Jun 23 07:57:12 2014 +0000
+++ b/web/src/luan/modules/web/web_run.luan	Mon Jun 23 20:41:08 2014 +0000
@@ -16,7 +16,7 @@
 	end
 end
 
-function page()
+function service()
 	local content_type = Http.request.get_parameter("content_type")
 	if content_type ~= nil then
 		Http.response.set_content_type(content_type)
diff -r 02859b3e9d80 -r 2c08e7e27a70 web/src/luan/modules/web/web_shell.luan
--- a/web/src/luan/modules/web/web_shell.luan	Mon Jun 23 07:57:12 2014 +0000
+++ b/web/src/luan/modules/web/web_shell.luan	Mon Jun 23 20:41:08 2014 +0000
@@ -12,7 +12,7 @@
 	end
 end
 
-function page()
+function service()
 	if Http.request.get_parameter("clear") ~= nil then
 		history = {}
 	else