I've been doing this:

if not isinstance(request.vars.things, list):
    request.vars.things = [request.vars.things]

for thing in things:
    ...


Is there a way to force a var to be a list?

I would rather always do request.vars.thing[0] for a single value than
have to use isinstance().

--Todd

Reply via email to