thirdparty/google_appengine/google/appengine/datastore/datastore_index.py
changeset 1278 a7766286a7be
parent 828 f5fd65cc3bf3
child 2864 2e0b0af889be
equal deleted inserted replaced
1277:5c931bd3dc1e 1278:a7766286a7be
   326       if name == prop_name:
   326       if name == prop_name:
   327         break
   327         break
   328     else:
   328     else:
   329       props.append((prop_name, ASCENDING))
   329       props.append((prop_name, ASCENDING))
   330 
   330 
   331   if (kind and not ancestor and
   331   if kind and not ancestor and len(props) <= 1:
   332       (not props or (len(props) == 1 and props[0][1] == ASCENDING))):
       
   333     required = False
   332     required = False
   334 
   333 
   335     if props:
   334     if props:
   336       prop, dir = props[0]
   335       prop, dir = props[0]
   337       if prop in datastore_types._SPECIAL_PROPERTIES and dir is DESCENDING:
   336       if prop in datastore_types._SPECIAL_PROPERTIES and dir is DESCENDING: