Removed order property in the getBatchOfData.
authorLennard de Rijk <ljvderijk@gmail.com>
Wed, 30 Sep 2009 21:10:36 +0200
changeset 2994 24db4afbc82e
parent 2993 e412510746dc
child 2995 5931e6d6056f
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.
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)