What your looking at is JSON.   null is the proper value in javascript.

On Jan 7, 2008 3:47 PM, Lukasz Szybalski <[EMAIL PROTECTED]> wrote:

>
> Hello,
> Is there a reason widgets return 'null' instead of None, aka string vs
> NoneType?
>
> {"tg_flash": null, "kwargs": {"LastName": "CLARK", "XXXNo": null,
> "searchtype": "Exact"}}
>
> Is this a bug? I think the None should be returned instead of null,
> then one could test:
> if kwargs['LastName']:
>    #do stuff
>
> vs now I have to check for null or ' ' or ...etc?
>
> ???
> Lucas
>
>
> --
> --
> VMware Server On Debian
>
> http://wiki.debian.org/Manual-Howto#head-c9e998d4806797452cd58fce417b6fb00fbc60be
> TurboGears from start to finish:
> http://www.lucasmanual.com/mywiki/TurboGears
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to