Thank You Jason!
When the tutorial asked me to replace the MainPage handler, I didn't 
realize how much of what was there
needed to be replaced, and I left a bunch of the old handler in. All better 
now. Thanks so much. Going to do
the tutorial again now that I know I have all the ingredients together. And 
then, back to Udacity CS253 I go.

On Saturday, July 14, 2012 6:16:09 PM UTC-7, Jason Elbourne wrote:
>
> Not sure if this would be the issue or just the way the last meesage was 
> typed but the code block of:
>
>     # Ancestor Queries, as shown here, are strongly consistent with the 
> High
>     # Replication Datastore. Queries that span entity groups are eventually
>     # consistent. If we omitted the ancestor from this query there would 
> be a
>     # slight chance that Greeting that had just been written would not 
> show up
>     # in a query.
>     greetings = db.GqlQuery("SELECT * "
>                             "FROM Greeting "
>                             "WHERE ANCESTOR IS :1 "
>                             "ORDER BY date DESC LIMIT 10",
>                             guestbook_key(guestbook_name))
>
>     for greeting in greetings:
>       if greeting.author:
>         self.response.out.write(
>             '<b>%s</b> wrote:' % greeting.author)
>       else:
>         self.response.out.write('An anonymous person wrote:')
>       self.response.out.write('<blockquote>%s</blockquote>' %
>                               cgi.escape(greeting.content))
>
>     self.response.out.write("""
>           <form action="/sign?%s" method="post">
>             <div><textarea name="content" rows="3" 
> cols="60"></textarea></div>
>             <div><input type="submit" value="Sign Guestbook"></div>
>           </form>
>           <hr>
>           <form>Guestbook name: <input value="%s" name="guestbook_name">
>           <input type="submit" value="switch"></form>
>         </body>
>       </html>""" % (urllib.urlencode({'guestbook_name': guestbook_name}),
>                           cgi.escape(guestbook_name)))
>
>
> IS not indented properly.
>  in fact this should not be there any more...the next part in the tutorial 
> was to replace that section with the new one. If you delete the code block 
> as I have shown it in this message...it should all start to work.
>
> Hope this helps.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/U3EZVUzdk_kJ.
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/google-appengine?hl=en.

Reply via email to