(self)
Returns an instance of AncestorSQLParams per the spec, returns None
            if it is not applicable
Returns an instance of AncestorSQLParams per the spec, returns None
            if it is not applicable
Returns an instance of AncestorSQLParams per the spec returns None if it is not applicable
def _ancestor_filter(self):
        """
        Returns an instance of AncestorSQLParams per the spec, returns None
            if it is not applicable
        """
        ancestor_expression = self.filter.get('ancestor_expression')
        if not (self.show_all and self.show_none) and ancestor_expression:
            if len(self.value) > 1:
                # if multiple locations are passed, for partition to work
                #   multiple ancestor locations should be passed, but that
                #   would require multiple DB calls. So instead don't pass
                #   any ancestors at all
                return None
            location = self.value[0].value
            params = AncestorSQLParams(self.filter['ancestor_expression'], location)
            if params.sql_value():
                return params
def _ancestor_filter ( self ) : ancestor_expression = self . filter . get ( 'ancestor_expression' ) if not ( self . show_all and self . show_none ) and ancestor_expression : if len ( self . value ) > 1 : # if multiple locations are passed, for partition to work #   multiple ancestor locations should be passed, but that #   would require multiple DB calls. So instead don't pass #   any ancestors at all return None location = self . value [ 0 ] . value params = AncestorSQLParams ( self . filter [ 'ancestor_expression' ] , location ) if params . sql_value ( ) : return params