def copy(self):
    '''Returns a copy of this query.'''
    if self.object_getattr is Query.object_getattr:
      other = Query(self.key)
    else:
      other = Query(self.key, object_getattr=self.object_getattr)
    other.limit = self.limit
    other.offset = self.offset
    other.offset_key = self.offset_key
    other.filters = self.filters
    other.orders = self.orders
    return other
def copy ( self ) : if self . object_getattr is Query . object_getattr : other = Query ( self . key ) else : other = Query ( self . key , object_getattr = self . object_getattr ) other . limit = self . limit other . offset = self . offset other . offset_key = self . offset_key other . filters = self . filters other . orders = self . orders return other
Returns a copy of this query.