Skip to content

TurboGears/tgext.formencode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Add formencode validation support to TurboGears 2.5+

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages