Click Documentation Release 4.2.dev0
1.5.17 Callbacks for Validation Changed in version 2.0. If you want to apply custom validation logic, you can do this in the parameter callbacks. These callbacks can both modify values as well as raise get_binary_stream('stdout') 1.13.11 Intelligent File Opening New in version 3.0. Starting with Click 3.0 the logic for opening files from the File type is exposed through the open_file() function. It can intelligently EOFError and KeyboardInterrupt exceptions. The latter are internally translated into a Abort. The logic applied is the following: 1. If an EOFError or KeyboardInterrupt happens, reraise it as Abort. 540 码力 | 101 页 | 407.32 KB | 1 年前3Flask-RESTful Documentation Release 0.3.10
app and routes resources/ __init__.py foo.py # contains logic for /Foo bar.py # contains logic for /Bar common/ __init__.py util.py # just some common0 码力 | 42 页 | 84.60 KB | 1 年前3
共 2 条
- 1