'If there\'s been a problem opening a workspace or for some reason
we suddenly find our selves without one, force the user
to select one if possible, or if not, to create one.'

def handle_no_active_workspace(self):

    def change_flag(widget):
        self.workspace_dialogs_raised = (not self.workspace_dialogs_raised)
    if self.workspace_dialogs_raised:
        return False
    if (self.serverIO.server_info() is None):
        return False
    self.workspace_dialogs_raised = True
    self.ws_sidebar.refresh_sidebar()
    available_workspaces = self.serverIO.get_workspaces_names()
    workspace_model = self.ws_sidebar.workspace_model
    if available_workspaces:
        dialog = ForceChooseWorkspaceDialog(self.window, workspace_model, self.change_workspace)
    else:
        dialog = ForceNewWorkspaceDialog(self.window, self.createWorkspace, self.workspace_manager, self.ws_sidebar, self.exit_faraday)
    dialog.connect('destroy', change_flag)
    dialog.show_all()
