Having problems posting to the AppEngine Cookbook

4 views
Skip to first unread message

theillustratedlife

unread,
Jan 24, 2009, 3:33:36 PM1/24/09
to Google App Engine
I just tried to write my first recipe on the Cookbook. I ran into the
following problems:

1) I can't attach a .py. I got a message saying I can only attach
text/scripts (when that's what I was attaching).

2) There was no warning that the recipe posted anyway. Afraid that I
lost all that typing, I went back one page and attempted to attach the
script again. I ended up with a duplicate post.

3) My post appears correctly in Edit my recipes, but is corrupted when
actually viewing. Notice that halfway through the jinja_helper.py
section, the body of my recipe is repeated. The offending character
seems to be the < in while len(output) < 6: Replacing the < with &lt;
breaks up the <pre> tag.

http://appengine-cookbook.appspot.com/recipe/upgrade-the-django-templating-system-to-jinja2/

theillustratedlife

unread,
Jan 25, 2009, 2:56:49 PM1/25/09
to Google App Engine
I have posted a corrected version to that link. The corrupted one is
now here:
http://appengine-cookbook.appspot.com/recipe/corrupted-recipe-upgrade-the-django-templating-system-to-jinja2/

The reason my .py wouldn't post is it started with the UTF-8 BOM,
which many text editors use to identify a text file as being Unicode-
encoded.

The recipe creation text field isn't HTML escaped. If you would just
escape it, all the problems I've noticed (except the BOM one), would
go away. It would also be much easier to copy/pase code into your
recipe without worrying about > or < in comparisons.

(Finally, please delete the following post. It's the duplicate I
originally mentioned)
http://appengine-cookbook.appspot.com/recipe/bug-in-cookbook

theillustratedlife

unread,
Jan 26, 2009, 11:52:13 PM1/26/09
to Google App Engine
Usability question:

How do you feel about comments being listed in reverse-chronological
order (as they are now) versus forward-chronological order (the
standard for most comments/forums/threaded discussions)? It's kind of
nice to have the most recent (hopefully most relevant) discussions
bubble up nearest to the article. Then again, it is inconsistent with
user expectations from the greater Web.
Reply all
Reply to author
Forward
0 new messages