On 2/13/06, Max Ischenko <[EMAIL PROTECTED]> wrote:
>
>
> I have a JSON method decorated with a validator but looks like the validators 
> are not run.
>
> E.g.:
>
>     @turbogears.expose(format="json")
>     @turbogears.validate(validators={'name':UnicodeString()})
>     def city(self, name=None):
>         print type(name) # -> yields str, not unicode
>
> Is this a bug or a feature?

Sounds like a bug somewhere. The output format should not change the
input handling at all.

Kevin

Reply via email to