Commit graph

46 commits

Author SHA1 Message Date
Kim Alvefur
5b1a236029 util.dataforms: Remove string conversion to let util.stanza validate types 2018-06-02 19:49:15 +02:00
Kim Alvefur
43b814a83b vairious: Add annotation when an empty environment is set [luacheck] 2018-02-28 20:06:26 +01:00
Matthew Wild
03b4a9a938 util.dataforms: Don't include list options in result forms (fixes #983) 2017-09-23 13:20:46 +01:00
Kim Alvefur
6b2c577b20 util.dataforms: Fix including default value for list-single when given as field.value[].default 2016-05-29 15:57:03 +02:00
Kim Alvefur
99a7a645f1 util.dataforms: Allow separation of options from values in list fields 2016-05-27 15:44:41 +02:00
Kim Alvefur
db9b82199f util.dataforms: Track which fields are included in a form 2015-12-08 20:16:49 +01:00
Kim Alvefur
e91df7d788 util.dataforms: Fix interaction of required fields and empty string values (fixes #521) 2015-09-12 17:49:47 +02:00
Kim Alvefur
5739f89a5d util.dataforms: Refactor parsing to reuse simple text parser instead of duplicate code 2015-09-12 17:40:14 +02:00
Kim Alvefur
eaa823a597 util.*: Remove use of module() function, make all module functions local and return them in a table at the end 2015-02-21 10:36:37 +01:00
Matthew Wild
d0741cdda2 util.dataforms: Rename unused loop counter to '_' [luacheck] 2015-05-06 19:43:51 +01:00
Matthew Wild
fd58c2c49c util.dataforms: Remove unused import of pairs() (thanks luacheck) 2015-05-06 19:38:29 +01:00
Waqas Hussain
cff8575563 Merge 0.9->0.10 2014-10-08 18:42:33 -04:00
daurnimator
810491af12 util/dataforms: Make sure we iterate over field tags 2014-10-07 12:08:23 -04:00
Kim Alvefur
a4b456c857 Merge 0.9->0.10 2014-04-23 00:22:36 +02:00
Kim Alvefur
ef460cbd97 util.dataforms: Add support for XEP-0221: Data Forms Media Element 2014-04-22 23:36:26 +02:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Florian Zeitz
17bc3cc408 util.dataforms: Return nil for empty list-mutli responses, to be consistent with other readers 2013-06-14 00:07:57 +02:00
Florian Zeitz
8cc295b34a util.dataforms: Add support for generating type='fixed' fields 2013-02-11 23:46:45 +01:00
Florian Zeitz
49d3586dc1 util.dataforms: Fix parsing of -multi fields 2012-06-12 18:29:58 +02:00
Kim Alvefur
644b8615f3 util.dataforms: Don't return invalid JIDs in jid-single. 2012-05-17 21:25:41 +02:00
Kim Alvefur
9cf153e1bc util.dataforms: Fix validation of booleans. 2012-05-17 21:18:35 +02:00
Kim Alvefur
3373f129a7 util.dataforms: Do field validation and normalization in field readers. 2012-05-17 21:01:44 +02:00
Florian Zeitz
df36a97275 util.dataforms: Fix verfication for booleans 2011-12-03 17:10:48 +01:00
Florian Zeitz
2dae99da75 util.dataforms: Fix form verification 2011-12-02 19:24:54 +01:00
Florian Zeitz
f9561755f7 util.dataforms: Add field verification logic 2011-08-11 23:58:26 +02:00
Waqas Hussain
b7e51a203d Monster whitespace commit (beware the whitespace monster). 2010-10-16 23:00:42 +05:00
Florian Zeitz
1f7f8e57a3 util.dataforms: Add list-multi support 2010-07-15 22:58:10 +02:00
Florian Zeitz
364d26fb31 util.dataforms: Capability to set default for list-single 2010-07-15 21:31:57 +02:00
Matthew Wild
2bc0606453 Update copyright headers for 2010 2010-03-22 17:06:15 +00:00
Matthew Wild
f80585f354 util.dataforms: Add optional type parameters (defaults to 'form') 2010-01-22 14:58:31 +00:00
Florian Zeitz
22d8917d8c util.dataforms: Don't require type when parsing form XML 2009-11-25 19:58:19 +00:00
Florian Zeitz
f74347b14d util.dataforms: Support for jid-multi field type 2009-11-06 23:51:14 +00:00
Florian Zeitz
2b25602115 util.dataforms: Only add value to rendered form if supplied in the data 2009-10-30 01:18:56 +00:00
Matthew Wild
fd9cf02217 util.dataforms: Incorporate slightly modified patch for list-single type from Florob 2009-10-16 19:52:09 +01:00
Matthew Wild
f266d2acc7 util.dataforms: Small fix to allow generating forms without specifying any input data 2009-10-10 03:09:15 +01:00
Matthew Wild
aba0949354 util.dataforms: Support for jid-single field type especially for Florob :) 2009-10-10 02:21:25 +01:00
Matthew Wild
e45610ce6e Add copyright header to those files missing one 2009-07-10 03:08:38 +01:00
Matthew Wild
eabe7a306e util.dataforms: Allow form layouts to specify default values for fields 2009-04-05 19:42:01 +01:00
Matthew Wild
017c2522ed util.dataforms: Set form type when generating a form 2009-04-05 19:41:24 +01:00
Matthew Wild
d9f66a567a util.dataforms: Support for retriving the field value data from forms 2009-04-04 18:08:35 +01:00
Matthew Wild
dd4c9e6eec util.dataforms: Fixes for hidden field type 2009-04-04 18:07:48 +01:00
Matthew Wild
4af9474ef2 util.dataforms: Fix some field types which didn't render properly 2009-04-04 16:25:16 +01:00
Matthew Wild
425c141369 util.dataforms: Add support for <required/> fields 2009-04-04 16:23:32 +01:00
Matthew Wild
938c08a108 util.dataforms: Fixed to actually work, mostly 2009-04-04 15:32:32 +01:00
Matthew Wild
fbb86043bd util.dataforms: Return the form 2009-03-01 23:34:25 +00:00
Matthew Wild
2a5e41bed0 util.dataforms: First commit, incomplete 2009-02-27 17:56:07 +00:00