Skip to main content

tgext.formencode

Support Formencode Schema validation in TurboGears 2.5+

Usage

    import tgext.formencode

    cfg = FullStackApplicationConfigurator()
    tgext.formencode.plugme(cfg)
    cfg.make_wsgi_app({}, {})

Variables Decoding

Adds support for decoding lists and dictionaries passed to turbogears controllers in the variableencoded format: {"l": [1, 2]} -> {"l-0": 1, "l-1": 2}

    from tgext.formencode import variable_decode

    class MyController(TGController):
        @variable_decode
        def test_vardec(self, **kw):
            print(kw)
            return ""

Release files for tgext.formencode 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tgext.formencode 0.1.1
File Size Uploaded
tgext_formencode-0.1.1.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tgext.formencode 0.1.1
File Interpreter ABI Platform
tgext_formencode-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / tgext_formencode-0.1.1.tar.gz

Download URL tgext_formencode-0.1.1.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
010edbc1e1a01504611d9d004a1b8114b7d4d79afe5aeb9679bcffe4a7138ad9
BLAKE2b-256 checksum
How to use checksums
3b4f6c772c7b1881cfbc6681d5fb49d99fdd02dd31c117a77534630cd80e6fe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release files / tgext_formencode-0.1.1-py3-none-any.whl

Download URL tgext_formencode-0.1.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38ea2b09476aa86b6297a920e5b46d55e9aed35b2dc9d98012d51da315acc61a
BLAKE2b-256 checksum
How to use checksums
9b690d630aa7c9fe3dc744d2fb1aa713c622a5cdf6034c2f5a96bf631682f420
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page