diff mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua @ 250:67f03b7786af

mod_adhoc: Fix dataform creation mod_adhoc_cmd_admin, mod_adhoc_cmd_modules: adapt to work with fixed mod_adhoc
author Florian Zeitz <florob@babelmonkeys.de>
date Wed, 01 Sep 2010 22:42:58 +0200
parents db1b4c6089b6
children d36160f4961f
line wrap: on
line diff
--- a/mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua	Sat Aug 28 22:19:54 2010 +0400
+++ b/mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua	Wed Sep 01 22:42:58 2010 +0200
@@ -286,7 +286,7 @@
 		else
 			return { status = "completed", error = { message = "User does not exist" } };
 		end
-		return { status = "completed", result = { layout = get_user_password_result_layout, data = {accountjid = accountjid, password = password} } };
+		return { status = "completed", result = { layout = get_user_password_result_layout, values = {accountjid = accountjid, password = password} } };
 	else
 		return { status = "executing", form = get_user_password_layout }, "executing";
 	end
@@ -370,7 +370,7 @@
 			resources = resources .. "\n" .. resource;
 			IPs = IPs .. "\n" .. session.ip;
 		end
-		return { status = "completed", result = {layout = get_user_stats_result_layout, data = {ipaddresses = IPs, rostersize = tostring(rostersize),
+		return { status = "completed", result = {layout = get_user_stats_result_layout, values = {ipaddresses = IPs, rostersize = tostring(rostersize),
 			onlineresources = resources}} };
 	else
 		return { status = "executing", form = get_user_stats_layout }, "executing";
@@ -412,7 +412,7 @@
 				end
 			end
 		end
-		return { status = "completed", result = {layout = get_online_users_result_layout, data = {onlineuserjids=t_concat(users, "\n")}} };
+		return { status = "completed", result = {layout = get_online_users_result_layout, values = {onlineuserjids=t_concat(users, "\n")}} };
 	else
 		return { status = "executing", form = get_online_users_layout }, "executing";
 	end