'Uses the instance of workspace manager passed into __init__ to
get all the workspaces names and see if they don\'t clash with
the one the user wrote. If everything\'s fine, it saves the new
workspace and returns True. If something went wrong, return False'

def createWorkspace(self, name, description=''):

    if (name in self.workspace_manager.getWorkspacesNames()):
        error_str = ('A    workspace    with    name    %s    already    exists' % name)
        model.api.log(error_str, 'ERROR')
        errorDialog(self.window, error_str)
        creation_ok = False
    else:
        model.api.log(("Creating    workspace    '%s'" % name))
        model.api.devlog('Looking    for    the    delegation    class')
        manager = self.getWorkspaceManager()
        try:
            name = manager.createWorkspace(name, description)
            self.change_workspace(name)
            creation_ok = True
        except Exception as e:
            model.guiapi.notification_center.showDialog(str(e))
            creation_ok = False
    return creation_ok
