You can always use the __key__ attribute instead of the date.
Look at [2] section "Paging without a property"

You can make an entry in the GAE cookbook [1].

[1] http://appengine-cookbook.appspot.com/
[2] http://code.google.com/appengine/articles/paging.html

2009/3/24 thebrianschott <[email protected]>:
>
> Djidjadji,
>
> Thanks very much for the reply. I ended up needing to use
> both strftime() and strptime() as you can see in my updated
> code. Another wrinkle I had to overcome was I had to reverse
> the sort order and the comparison inequality to pass through
> *all* the instances; without such a change, I only altered half
> of them.
>
> In the code below I left in the original sort order and
> comparison lines, but commented them out, so it would be
> clearer what was required.
>
> http://dpaste.com/18328/
>
> Wouldn't my code be good to show others as a code recipe
> or something, because I bet dates are more unique then
> names? Even if you agree,  I don't know how to publish such items.
>
> On Mar 23, 8:50 pm, djidjadji <[email protected]> wrote:
>> You must convert the text version of the date back to a
>> datetime.datetime object.
>>
>> Use the datetime.datetime.strptime(date_string, format) method
>>
>> 2009/3/24 thebrianschott <[email protected]>:
>>
>> > [snip]
>>
>> >    next_url = '/update_datastore?date=%s' % urllib.quote(next_date)
>> >   res = map(safe_map.__getitem__, s)
>> > TypeError: argument 2 to map() must support iteration
>>
>> >http://dpaste.com/18238/
>>
>> > Can somebody show me what is wrong with my code, please?
>>
>> > Brian in Atlanta

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