Mercurial > prosody-modules
comparison mod_adhoc/adhoc/adhoc.lib.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 | 1ae653712e37 |
children |
comparison
equal
deleted
inserted
replaced
249:50c4348c2494 | 250:67f03b7786af |
---|---|
67 '" at node "'..command.node..'" provided an invalid action "'..action..'"'); | 67 '" at node "'..command.node..'" provided an invalid action "'..action..'"'); |
68 end | 68 end |
69 end | 69 end |
70 cmdtag:add_child(actions); | 70 cmdtag:add_child(actions); |
71 elseif name == "form" then | 71 elseif name == "form" then |
72 cmdtag:add_child((content.layout or content):form(content.data)); | 72 cmdtag:add_child((content.layout or content):form(content.values)); |
73 elseif name == "result" then | 73 elseif name == "result" then |
74 cmdtag:add_child((content.layout or content):form(content.data, "result")); | 74 cmdtag:add_child((content.layout or content):form(content.values, "result")); |
75 elseif name == "other" then | 75 elseif name == "other" then |
76 cmdtag:add_child(content); | 76 cmdtag:add_child(content); |
77 end | 77 end |
78 end | 78 end |
79 stanza:add_child(cmdtag); | 79 stanza:add_child(cmdtag); |