Sorry, I was looking at the wrong snippet. 'count' is not a valid method on a Python list object. Instead, use "len(TaskLogs)", or better just "if TaskLogs", which evaluates to true if TaskLogs is non-empty.
-Nick Johnson On Thu, May 21, 2009 at 2:28 PM, Neal <[email protected]> wrote: > > I did do a fetch into TaskLogs: TaskLogs = query.fetch > (LIMIT,offset=0); > My GQL query object is called "query", right? > In the template I do this: {%for TaskLog in TaskLogs%}. > So that implies to me that TaskLogs is a list, and if I can iterate > through it, I should be able to use the native Python Count method. > Can you not count the things which can be enumerated? > > Thanks, > Neal > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
