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


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.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tgext_formencode-0.1.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file tgext_formencode-0.1.1.tar.gz.

File metadata

  • Download URL: tgext_formencode-0.1.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for tgext_formencode-0.1.1.tar.gz
Algorithm Hash digest
SHA256 010edbc1e1a01504611d9d004a1b8114b7d4d79afe5aeb9679bcffe4a7138ad9
MD5 a48587576ca670d26c3e85d22c4a83e5
BLAKE2b-256 3b4f6c772c7b1881cfbc6681d5fb49d99fdd02dd31c117a77534630cd80e6fe0

See more details on using hashes here.

File details

Details for the file tgext_formencode-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tgext_formencode-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 38ea2b09476aa86b6297a920e5b46d55e9aed35b2dc9d98012d51da315acc61a
MD5 9161bcc109e226b72f81b1dfa7158c9e
BLAKE2b-256 9b690d630aa7c9fe3dc744d2fb1aa713c622a5cdf6034c2f5a96bf631682f420

See more details on using hashes here.

Supported by

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