Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14303 > unrolled thread
| Started by | Joseph Nahmias <joe@nahmias.net> |
|---|---|
| First post | 2022-08-01 06:30 +0200 |
| Last post | 2022-08-01 06:30 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.debian.maint.python
Bug#1016461: ITP: wtforms-alchemy -- Tools for creating WTForms forms from SQLAlchemy models Joseph Nahmias <joe@nahmias.net> - 2022-08-01 06:30 +0200
| From | Joseph Nahmias <joe@nahmias.net> |
|---|---|
| Date | 2022-08-01 06:30 +0200 |
| Subject | Bug#1016461: ITP: wtforms-alchemy -- Tools for creating WTForms forms from SQLAlchemy models |
| Message-ID | <EPve1-fbyl-3@gated-at.bofh.it> |
Package: wnpp
Severity: wishlist
Owner: Joseph Nahmias <joe@nahmias.net>
X-Debbugs-Cc: debian-devel@lists.debian.org, debian-python@lists.debian.org, joe@nahmias.net, konsta@fastmonkeys.com
* Package name : wtforms-alchemy
Version : 0.18.0
Upstream Author : Konsta Vesterinen <konsta@fastmonkeys.com>
* URL : https://github.com/kvesteri/wtforms-alchemy
* License : BSD
Programming Lang: Python
Description : Tools for creating WTForms forms from SQLAlchemy models
WTForms-Alchemy provides a helper class that let you create a Form class
from a SQLAlchemy model. It does not try to replace all the functionality
of wtforms.ext.sqlalchemy, only the model_form function of
wtforms.ext.sqlalchemy by a much better solution. Other functionality of
.ext.sqlalchemy such as QuerySelectField and QuerySelectMultipleField can be
used along with WTForms-Alchemy.
.
The benefits of WTForms-Alchemy ModelForm over wtforms.ext.sqlachemy’s
model_form include:
.
* Provides explicit declaration of ModelForms (much easier to override
certain columns)
* Form generation supports Unique and NumberRange validators
* Form inheritance support (along with form configuration inheritance)
* Automatic SelectField type coercing based on underlying column type
* By default uses wtforms_components SelectField for fields with choices.
This field understands None values and renders nested datastructures as
optgroups.
* Provides better Unique validator
* Supports custom user defined types as well as type decorators
* Supports SQLAlchemy-Utils datatypes
* Supports ModelForm model relations population
* Smarter field exclusion
* Smarter field conversion
* Understands join table inheritance
* Better configuration
Back to top | Article view | linux.debian.maint.python
csiph-web