Skip to main content

Enable support for formencode validation library

Project description

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 ""

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tgext.formencode-0.1.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

tgext.formencode-0.1-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page