count > 1000 split according to time or any, example improvable with
dynamical increment (make dependant dayinc)
def get(self):#sums > 1000
import time
from datetime import datetime, timedelta
inc = datetime.now ()-timedelta(days = 1000)
dayinc = 10 #ok while return < 1000 every 10 days
sum = 0
while(inc < datetime.now()):
  ads = Ad.all().filter("modified <", inc + timedelta(days =
dayinc)).filter("modified >", inc).count()
  inc = inc + timedelta (days = dayinc)
  sum=sum+ads
self.response.out.write(sum)

and sorting in pure python with one's own order always works or use
the pattern called "comparable",
--~--~---------~--~----~------------~-------~--~----~
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