With the old expose method, I was allowed to set format="json" and call
the function with tg_format=json.  I know it's sort of redundant, but
we started this whole project using tg_format, and that's probably how
we're going to end it.

With the new expose method, if I say format="json", I can't specify
tg_format unless I also say allow_json=True.  I think that specifying
the default format as json should mean we're allowed to ask for the
results in json format.

To fix this you are basically saying format="json" implies
allow_json=True.  I'd submit a patch, but it's only a one line change.
Add allow_jsow = True right below template = "json" (line 194) in
controllers.py

Jason

Attachment: signature.asc
Description: PGP signature

Reply via email to