#831: Improved wash_urlargd()
-------------------------+------------------
Reporter: pglauner | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: v1.1
Component: *general* | Version:
Keywords: |
-------------------------+------------------
Idea: There is an argument xyz:
{{{
argd = wash_urlargd(form, {'xyz': (int, DEFAULT)})
}}}
Suggest that xyz must be >= 0. Negative values might be caught by
{{{
if argd['xyz'] < 0:
do something
}}}
or are not caught at all, which might result in an exception or even
worse.
wash_urlargd() should be extended to handle this.
Alternatively, a complete new function could be created to handle a lot of
other cool things like accepting a list of permitted values &c.
--
Ticket URL: <http://invenio-software.org/ticket/831>
Invenio <http://invenio-software.org>