-
will be converted into a response, including raw Flask response objects. Flask-RESTful also support setting the response code and response headers using multiple return values, as shown below: class Todo1(Resource): Flask app = Flask(__name__) app.config['BUNDLE_ERRORS'] = True Warning BUNDLE_ERRORS is a global setting that overrides the bundle_errors option in individual RequestParser instances. Error Messages Error representation will format JSON by providing a RESTFUL_JSON attribute on the application configuration. This setting is a dictionary with keys that correspond to the keyword arguments of json.dumps() [https://docs
0 码力 |
42 页 |
84.60 KB
| 1 年前 3
-
installation of a base system, then selection and installation of tasks. (Some background about setting up the partitions for your Debian system is explained in 附录 C.) 6. 从您新安装的基本系统启动,第 7 章。 一旦您安装完系统,可以阅读第 尽可按照自己的喜好更改。比如说,选中 Use as: 选项,然后您可以让这个分区改用其他的文件系统,把 它用作交换分区、软 RAID、LVM,或者根本就放着不用。一旦您对新分区的设置感到满意了,就可以选 择 Done setting up the partition,然后退回到 partman 的主界面。 若是您希望修改分区的设置,只要选中该分区,分区的配置菜单就会出现在您的面前。由于这个界面 和新建分区时使用的界面是相同 速度、选择的加密算法和密钥长度紧密相关。 为了使用加密,您必须在主分区菜单选择空闲的空间创建一个新分区。另一种是使用现有的分区 (例 如,普通的分区、一个 LVM 逻辑卷或者 RAID 卷)。在 Partition setting 菜单,您需要选择 physical volume for encryption,其位于 Use as: 选项。菜单将包含分区的加密选项。 由 debian-installer 支持的加密方法是
0 码力 |
93 页 |
562.93 KB
| 1 年前 3
-
Switches In addition to boolean flags, there are also feature switches. These are implemented by setting multiple options to the same parameter name and defining a flag value. Note that by providing the come from argparse, you might be missing support for setting nargs to + to indicate that at least one argument is required. This is supported by setting required=True. However, this should not be used if parameter with the same name, the default help parameter stops accepting it. There is a context setting that can be used to override the names of the help parameters called help_option_names. This example
0 码力 |
101 页 |
407.32 KB
| 1 年前 3
-
items to be displayed only on page 1, or not on page 1, the "page 1 option" this is possible by setting this option: Page 1 option: None: no constraint. Page 1 only: the items is visible only on page selected item: Settings for lines and rectangles Settings for texts Settings for poly-polygons Setting for bitmaps 10. Interactive edition 10.1. Item selection An item can be selected: From the Design
0 码力 |
33 页 |
414.75 KB
| 1 年前 3
-
break long messages, you can manually add in your text. Another option is to use maxMessageSize setting: @startuml skinparam maxMessageSize 50 participant a participant b a -> b :this\nis\nmanually\ndone super footer legend right Short legend endlegend @endmindmap 11.10 Word Wrap Using MaximumWidth setting you can control automatic word wrap. Unit used is pixel. @startmindmap Guide de référence du langage Word Wrap 12 WORK BREAKDOWN STRUCTURE (WBS) *** Spain @endwbs 12.7 Word Wrap Using MaximumWidth setting you can control automatic word wrap. Unit used is pixel. @startwbs