But why would testing for None throw a 500 severe error?  Seems like
it would catch the error and display something more helpful??
I am running with debug=True.

Thanks for the clue on "count", here's how I got the count working:

  def get(self):
     query = TaskLog.gql("WHERE resultFlag > 0");  # get all rows
     LIMIT = 1000
     TaskLogs = query.fetch(LIMIT,offset=0);

     if TaskLogs.count(TaskLog) > 0:
       self.renderPage('templates/list.html', {"TaskLogs": TaskLogs})
     else:
        self.response.out.write("""
            <h3>Error - no TaskLogs returned from query</h3>
            """)

Neal Walters
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to