'Query builder
@param id: record ID or list of record IDs to include
@param uid: record UID or list of record UIDs to include
@param filter: filtering query (DAL only)
@param vars: dict of URL query variables
@param extra_filters: extra filters (to be applied on
pre-filtered subsets), as list of
tuples (method, expression)
@param filter_component: the alias of the component the URL
filters apply for (filters for this
component must be handled separately)'

def build_query(self, id=None, uid=None, filter=None, vars=None, extra_filters=None, filter_component=None):

    self._length = None
    self.rfilter = S3ResourceFilter(self, id=id, uid=uid, filter=filter, vars=vars, extra_filters=extra_filters, filter_component=filter_component)
    return self.rfilter
