thirdparty/google_appengine/google/appengine/api/datastore.py
changeset 828 f5fd65cc3bf3
parent 686 df109be0567c
child 1278 a7766286a7be
equal deleted inserted replaced
827:88c186556a80 828:f5fd65cc3bf3
   255 
   255 
   256   tx = _MaybeSetupTransaction(req, keys)
   256   tx = _MaybeSetupTransaction(req, keys)
   257   if tx:
   257   if tx:
   258     tx.RecordModifiedKeys(keys)
   258     tx.RecordModifiedKeys(keys)
   259 
   259 
   260   resp = api_base_pb.VoidProto()
   260   resp = datastore_pb.DeleteResponse()
   261   try:
   261   try:
   262     apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Delete', req, resp)
   262     apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Delete', req, resp)
   263   except apiproxy_errors.ApplicationError, err:
   263   except apiproxy_errors.ApplicationError, err:
   264     raise _ToDatastoreError(err)
   264     raise _ToDatastoreError(err)
   265 
   265 
  1087       elif len(self.__orderings) >= 1 and self.__orderings[0][0] != property:
  1087       elif len(self.__orderings) >= 1 and self.__orderings[0][0] != property:
  1088         raise datastore_errors.BadFilterError(
  1088         raise datastore_errors.BadFilterError(
  1089           'Inequality operators (%s) must be on the same property as the '
  1089           'Inequality operators (%s) must be on the same property as the '
  1090           'first sort order, if any sort orders are supplied' %
  1090           'first sort order, if any sort orders are supplied' %
  1091           ', '.join(self.INEQUALITY_OPERATORS))
  1091           ', '.join(self.INEQUALITY_OPERATORS))
  1092     elif property in datastore_types._SPECIAL_PROPERTIES:
  1092 
       
  1093     if property in datastore_types._SPECIAL_PROPERTIES:
  1093       if property == datastore_types._KEY_SPECIAL_PROPERTY:
  1094       if property == datastore_types._KEY_SPECIAL_PROPERTY:
  1094         for value in values:
  1095         for value in values:
  1095           if not isinstance(value, Key):
  1096           if not isinstance(value, Key):
  1096             raise datastore_errors.BadFilterError(
  1097             raise datastore_errors.BadFilterError(
  1097               '%s filter value must be a Key; received %s (a %s)' %
  1098               '%s filter value must be a Key; received %s (a %s)' %