'Move an existing Dock to a new location.'

def moveDock(self, dock, position, neighbor):

    if ((position in ['left', 'right', 'top', 'bottom']) and (neighbor is not None) and (neighbor.container() is not None) and (neighbor.container().type() == 'tab')):
        neighbor = neighbor.container()
    self.addDock(dock, position, neighbor)
