(action)
return False
The owner_id should be set if any indices are not 'extension'.
    If it was explicitly_set, never autoset it.
The owner_id should be set if any indices are not 'extension'.
    If it was explicitly_set, never autoset it.
The owner_id should be set if any indices are not extension . If it was explicitly_set never autoset it .
def autoset_owner_id_for_advanced_action(action):
    """
    The owner_id should be set if any indices are not 'extension'.
    If it was explicitly_set, never autoset it.
    """

    explicitly_set = ('owner_id' in action.case_properties)

    if explicitly_set:
        return False

    if not len(action.case_indices):
        return True

    relationships = [i.relationship for i in action.case_indices]
    if 'question' in relationships:
        # if there is a dynamically-determined relationship, don't autoset, the owner_id
        # bind will be added when the index is created rather than in add_create_block
        return False
    if 'child' in relationships:
        # if there is a child relationship, autoset
        return True
    # if there are only extension indices, don't autoset
    return False
def autoset_owner_id_for_advanced_action ( action ) : explicitly_set = ( 'owner_id' in action . case_properties ) if explicitly_set : return False if not len ( action . case_indices ) : return True relationships = [ i . relationship for i in action . case_indices ] if 'question' in relationships : # if there is a dynamically-determined relationship, don't autoset, the owner_id # bind will be added when the index is created rather than in add_create_block return False if 'child' in relationships : # if there is a child relationship, autoset return True # if there are only extension indices, don't autoset return False