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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file tgext.formencode-0.1.tar.gz.

File metadata

  • Download URL: tgext.formencode-0.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for tgext.formencode-0.1.tar.gz
Algorithm Hash digest
SHA256 11b204d97754e78ae1f05654b8da81e06f65a60ec43537318737508d827e511c
MD5 e4d98b6777c4db58cb2febca4f71c2f6
BLAKE2b-256 c8a8255c64282b33820afc8c211a55028645589823fd4b8b21301159483c7e30

See more details on using hashes here.

File details

Details for the file tgext.formencode-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tgext.formencode-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d97802add0c8e308a4516bdaefb2eddfa1ca26258f70afa416c0939ce698b57
MD5 63977013b2846f815c1cdfa320d27074
BLAKE2b-256 cafc4e998183d6b3141cbae6fb4b55462c55eae73a3fc4c42798a3b3cee31453

See more details on using hashes here.

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