comparison sat/plugins/plugin_xep_0313.py @ 2763:c4190d5340ab

XEP-0059: max value check: check that max is not negative, this is to spot the accidental use of C.NO_LIMIT for max
author Goffi <goffi@goffi.org>
date Fri, 11 Jan 2019 09:48:19 +0100
parents 3480d4fdf83a
children 003b8b4b56a7
comparison
equal deleted inserted replaced
2762:5a51c7fc74a5 2763:c4190d5340ab
141 except KeyError: 141 except KeyError:
142 pass 142 pass
143 143
144 for name, value in extra.iteritems(): 144 for name, value in extra.iteritems():
145 if name.startswith(FILTER_PREFIX): 145 if name.startswith(FILTER_PREFIX):
146 var = name[len(FILTER_PREFIX) :] 146 var = name[len(FILTER_PREFIX):]
147 extra_fields = form_args.setdefault(u"extra_fields", []) 147 extra_fields = form_args.setdefault(u"extra_fields", [])
148 extra_fields.append(data_form.Field(var=var, value=value)) 148 extra_fields.append(data_form.Field(var=var, value=value))
149 149
150 for arg in (u"node", u"query_id"): 150 for arg in (u"node", u"query_id"):
151 try: 151 try: