These are chat archives for cherrypy/cherrypy

8th
Dec 2018
Sviatoslav Sydorenko
@webknjaz
Dec 08 2018 00:42
can you post a code snippet with that?
but in general I'd say you need some schema validation framework in place (WTForms, Cerberus, trafaret, marshmallow)
and maybe apply it as a decorator
Jason R. Coombs
@jaraco
Dec 08 2018 15:50
@Giancarlos I’ve found this pattern in other Python systems, not just CherryPy, which is why I wrote always_iterable. I’m not sure it’s the right thing for your use-case, but it sounds like it might be.