使用各种工具制作网格/折叠布局表单
deform_extensions的Python项目详细描述
此包提供自定义小部件和表单布局小部件。
它旨在扩展deform 2并替换以前的deform_bootstrap_扩展 (用于使引导带变形并使0.*系列变形)
安装
pip install deform_extensions
自定义小部件
- LocalizationWidget : Map location
- CustomDateInputWidget : Date
- CustomDateTimeInputWidget : Datetime widget
- RadioToggleWidget
添加了与日期相关的小部件,以便更好地支持 国际化和不同格式的支持。
radiotogglewidget是一个通用的无线电小部件,允许隐藏显示表单 选择的节点。它非常类似于deform基本无线电小部件 不同之处在于,值参数是一个三元组(而不是两元组)的列表, 允许指定要隐藏/显示的窗体节点的名称。
布局工具
布局工具:
- DisabledInput (that really doesn’t allow edition)
- InlineMappingWidget
- VoidWidget that is used by GridWidgets to fill void cells
- TableMappingWidget
- GridMappingWidget
- AccordionMappingWidget
- TableFormWidget
- GridFormWidget
- AccordionFormWidget
有关某些文档,请参见初始化源代码,或在freenode@tonthon上ping我
运行测试
pip install pytest
py.test -xv