thirdparty/google_appengine/google/appengine/api/datastore.py
changeset 828 f5fd65cc3bf3
parent 686 df109be0567c
child 1278 a7766286a7be
--- a/thirdparty/google_appengine/google/appengine/api/datastore.py	Tue Jan 20 01:12:43 2009 +0000
+++ b/thirdparty/google_appengine/google/appengine/api/datastore.py	Tue Jan 20 13:19:45 2009 +0000
@@ -257,7 +257,7 @@
   if tx:
     tx.RecordModifiedKeys(keys)
 
-  resp = api_base_pb.VoidProto()
+  resp = datastore_pb.DeleteResponse()
   try:
     apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Delete', req, resp)
   except apiproxy_errors.ApplicationError, err:
@@ -1089,7 +1089,8 @@
           'Inequality operators (%s) must be on the same property as the '
           'first sort order, if any sort orders are supplied' %
           ', '.join(self.INEQUALITY_OPERATORS))
-    elif property in datastore_types._SPECIAL_PROPERTIES:
+
+    if property in datastore_types._SPECIAL_PROPERTIES:
       if property == datastore_types._KEY_SPECIAL_PROPERTY:
         for value in values:
           if not isinstance(value, Key):