(partition_value)
return new_partition_value
Returns a new partition value that belongs to the same db alias as
        the given partition value does
Returns a new partition value that belongs to the same db alias as
        the given partition value does
Returns a new partition value that belongs to the same db alias as the given partition value does
def new_id_in_same_dbalias(partition_value):
    """
    Returns a new partition value that belongs to the same db alias as
        the given partition value does
    """
    old_db_name = get_db_alias_for_partitioned_doc(partition_value)
    new_db_name = None
    while old_db_name != new_db_name:
        # todo; guard against infinite recursion
        new_partition_value = str(uuid.uuid4())
        new_db_name = get_db_alias_for_partitioned_doc(new_partition_value)
    return new_partition_value
def new_id_in_same_dbalias ( partition_value ) : old_db_name = get_db_alias_for_partitioned_doc ( partition_value ) new_db_name = None while old_db_name != new_db_name : # todo; guard against infinite recursion new_partition_value = str ( uuid . uuid4 ( ) ) new_db_name = get_db_alias_for_partitioned_doc ( new_partition_value ) return new_partition_value