On Feb 17, 2006, at 7:15 AM, SamFeltus wrote:

>
> I stuck the old WXPython version up, I am gonna get it debugged and
> running on TG.  New version is still at
> http://sonomasunshine.com/sonomasunshine/FrontPage.html
> also
> http://sonomasunshine.com/sonomasunshine/TestPage.html
>
> Are ya'll giving it some time to load, there are no preloaders yet.
> Looking at logs, some people definitely get all the files, others only
> get some.  I think 1 problem might be too many large JPEG's, for  
> now it
> depends on all JPEGs loading correctly to work.  The loading needs
> error checking for certain.

My connection is 11mbit (down, anyway), I gave it a few minutes, I  
don't think that's the problem :)

> Here is the JSON it is importing, how is that not technically JSON, I
> am confused by that?
>
> http://sonomasunshine.com/cgi-bin/write_json_static.py? 
> pagename=FrontPage

It's not JSON because your encoding code is broken (unless you're  
doing it by hand?!), like I said previously.  You need to read the  
JSON spec more closely, or use a library that is actually correct  
(e.g. simplejson).  In this particular document the following things  
deviate from JSON:

1. "json_str=" - not JSON.
2. license_mc.setts.text is not escaped correctly
3. notes_text_mc.setts.text is not escaped correctly
4. error_text_mc.setts.text is not escaped correctly

If you take a look at the JSON spec you'll see that the string  
encoding should be:
Any UNICODE character except " or \  or control character.  The  
important thing to note is that newline is a control character.

In some of your other JSON documents (found by following the links I  
saw in the front page's JSON) I saw unescaped " in text (like the  
Python code samples), which is broken by almost any JSON parsing  
rules because it would prematurely terminate the string.

-bob


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to