a little correction..... serializers.py in trunk now "inverts" the order of 
imports
it tries simplejson (cause newer versions of simplejson as an external 
module are always faster than the standard json shipped with python from 
2.6 on)
then uses json
then uses contrib.simplejson
However, if you want to be "uber-compatible" it's best to use always what 
Alan suggested (using serializers) so you can "lean" on the "smart-import" 
that it does by default.

On Friday, May 3, 2013 3:46:32 AM UTC+2, Alan Etkin wrote:
>
> Ouch. I must have used old version of web2py than.
>> I always imported simplejson as "import simplejson as json" 
>> I totally forgot to replicate my setup before terminating my linode 
>> server.
>>
>
> Maybe you had simplejson installed in your old o.s., so you could simply 
> import it directly.
>
> You could do this instead:
>
> >>> from serializers import json_parser as json
>
> It tries json stdlib, then an installed simplejson, and as fallback the 
> module included in contrib.
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to