# HG changeset patch # User Lennard de Rijk # Date 1254337836 -7200 # Node ID 24db4afbc82e33deaec57a0cf3bf32654eda1b2c # Parent e412510746dcc8945944b66b9ab55ba1a5b02617 Removed order property in the getBatchOfData. This ordering is not possible since you want to go over the entities in order oftheir key and ordering them would prohibit this from happening properly. diff -r e412510746dc -r 24db4afbc82e app/soc/logic/models/base.py --- a/app/soc/logic/models/base.py Tue Sep 29 20:11:54 2009 +0200 +++ b/app/soc/logic/models/base.py Wed Sep 30 21:10:36 2009 +0200 @@ -587,12 +587,11 @@ return result - def getBatchOfData(self, filter=None, order=None, start_key=None, batch_size=10): + def getBatchOfData(self, filter=None, start_key=None, batch_size=10): """Returns one batch of entities Args: filter: a dict for the properties that the entities should have - order: a list with the sort order next_key: a key for the first entity that should be returned batch_size: the maximum amount of entities that should be fetched @@ -603,7 +602,7 @@ batch_size = min(999, batch_size) - query = self.getQueryForFields(filter=filter, order=order) + query = self.getQueryForFields(filter=filter) if start_key: query.filter('__key__ >=', start_key)