'String representation of the instance'

def __repr__(self):

    resource = self.resource
    inner_joins = self.get_joins(left=False)
    if inner_joins:
        inner = S3Joins(resource.tablename, inner_joins)
        ijoins = ',    '.join([str(j) for j in inner.as_list()])
    else:
        ijoins = None
    left_joins = self.get_joins(left=True)
    if left_joins:
        left = S3Joins(resource.tablename, left_joins)
        ljoins = ',    '.join([str(j) for j in left.as_list()])
    else:
        ljoins = None
    vfltr = self.get_filter()
    if vfltr:
        vfltr = vfltr.represent(resource)
    else:
        vfltr = None
    represent = ('<S3ResourceFilter    %s,    query=%s,    join=[%s],    left=[%s],    distinct=%s,    filter=%s>' % (resource.tablename, self.get_query(), ijoins, ljoins, self.distinct, vfltr))
    return represent
