Changes between Version 3 and Version 4 of Ticket #12426
- Timestamp:
- Apr 19, 2016, 6:38:51 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12426 – Release Notes
v3 v4 1 * Added `as_bool` to `_RequestArgs`, which converts the value to a boolean or returns a default if an exception is raised.2 * Added `as_int` to `_RequestArgs`, which converts the value to an int or returns a default if an exception is raised.3 * Added `getbool` to `_RequestArgs`, which gets the value as a boolean or raises an `HTTPBadRequest` exception on invalid input.4 * Added `getint` to `_RequestArgs`, which gets the value as an integer or raises an `HTTPBadRequest` exception on invalid input.5 * Added `require` to `_RequestArgs`, which raises an `HTTPBadRequest` exception if the parameter is not in the dictionary. -
Ticket #12426 – API Changes
v3 v4 1 * Added `as_bool` to `_RequestArgs`, which converts the value to a boolean or returns a default if an exception is raised. 2 * Added `as_int` to `_RequestArgs`, which converts the value to an int or returns a default if an exception is raised. 3 * Added `getbool` to `_RequestArgs`, which gets the value as a boolean or raises an `HTTPBadRequest` exception on invalid input. 4 * Added `getint` to `_RequestArgs`, which gets the value as an integer or raises an `HTTPBadRequest` exception on invalid input. 5 * Added `require` to `_RequestArgs`, which raises an `HTTPBadRequest` exception if the parameter is not in the dictionary.