changeset 184:69f1e79a9eb0

fix Reactionary.luan git-svn-id: https://luan-java.googlecode.com/svn/trunk@185 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 25 Jun 2014 04:47:48 +0000
parents ed19d14360fa
children 5f50dba8ac7d
files core/src/luan/modules/Reactionary.luan
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/core/src/luan/modules/Reactionary.luan	Wed Jun 25 02:08:12 2014 +0000
+++ b/core/src/luan/modules/Reactionary.luan	Wed Jun 25 04:47:48 2014 +0000
@@ -6,17 +6,19 @@
 function put_site(domain,password,dir)
 	local pc = Io.Socket(host,port).Pickle_client()
 	local pickle = pc.pickle
-	pc.call %>
+	pc.call(%>
+		import "Reactionary"
 		Reactionary.do_put_site(<%=pickle(domain)%>,<%=pickle(password)%>,<%=pickle(dir)%>)
-	<%
+	<%)
 	pc.close()
 end
 
 function delete_site(domain,password)
 	local pc = Io.Socket(host,port).Pickle_client()
 	local pickle = pc.pickle
-	pc.call %>
+	pc.call(%>
+		import "Reactionary"
 		Reactionary.do_delete_site(<%=pickle(domain)%>,<%=pickle(password)%>)
-	<%
+	<%)
 	pc.close()
 end