# HG changeset patch # User Matthew Wild # Date 1238956884 -3600 # Node ID 4c3f3d60a2f425b4b3a4645e123ff94fe8acb78e # Parent 98ca5a753fee10c84848218779e070b0579175f8 util.dataforms: Set form type when generating a form diff -r 98ca5a753fee -r 4c3f3d60a2f4 util/dataforms.lua --- a/util/dataforms.lua Sat Apr 04 18:08:35 2009 +0100 +++ b/util/dataforms.lua Sun Apr 05 19:41:24 2009 +0100 @@ -16,10 +16,8 @@ return setmetatable(layout, form_mt); end -local form_x_attr = { xmlns = xmlns_forms }; - function form_t.form(layout, data) - local form = st.stanza("x", form_x_attr); + local form = st.stanza("x", { xmlns = xmlns_forms, type = "form" }); if layout.title then form:tag("title"):text(layout.title):up(); end