'Sets the user_partitions on block specified by location.'

def set_user_partitions(self, block_location, partitions):

    block = modulestore().get_item(block_location)
    block.user_partitions = partitions
    modulestore().update_item(block, 1)
