From 29743ad3c4fb9dcc0a6b331f12160e715124ffd7 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Fri, 18 Nov 2016 12:05:19 +0000 Subject: [PATCH] Allow selection of process output and commands. --- web/pgadmin/misc/bgprocess/static/css/bgprocess.css | 4 ++++ web/pgadmin/tools/backup/__init__.py | 4 ++-- web/pgadmin/tools/import_export/__init__.py | 2 +- web/pgadmin/tools/restore/__init__.py | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/web/pgadmin/misc/bgprocess/static/css/bgprocess.css b/web/pgadmin/misc/bgprocess/static/css/bgprocess.css index 053b5459f..2767772e6 100644 --- a/web/pgadmin/misc/bgprocess/static/css/bgprocess.css +++ b/web/pgadmin/misc/bgprocess/static/css/bgprocess.css @@ -43,6 +43,10 @@ .pg-bg-process-logs { width: 100%; + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; } .pg-bg-etime { diff --git a/web/pgadmin/tools/backup/__init__.py b/web/pgadmin/tools/backup/__init__.py index acfc6e1a6..57a9028e3 100644 --- a/web/pgadmin/tools/backup/__init__.py +++ b/web/pgadmin/tools/backup/__init__.py @@ -151,7 +151,7 @@ class BackupMessage(IProcessDesc): res += html.safe_str( _("Running command:") ) - res += '
' + res += '
' res += html.safe_str(cmd) replace_next = False @@ -177,7 +177,7 @@ class BackupMessage(IProcessDesc): if arg == '--file': replace_next = True res += cmdArg(arg) - res += '
' + res += '' return res diff --git a/web/pgadmin/tools/import_export/__init__.py b/web/pgadmin/tools/import_export/__init__.py index 29c0dd4c7..194f58e41 100644 --- a/web/pgadmin/tools/import_export/__init__.py +++ b/web/pgadmin/tools/import_export/__init__.py @@ -103,7 +103,7 @@ class Message(IProcessDesc): res += html.safe_str( _("Running command:") ) - res += '
' + res += '
' res += html.safe_str(cmd) replace_next = False diff --git a/web/pgadmin/tools/restore/__init__.py b/web/pgadmin/tools/restore/__init__.py index 0fa8bb8d2..55e9e0420 100644 --- a/web/pgadmin/tools/restore/__init__.py +++ b/web/pgadmin/tools/restore/__init__.py @@ -93,7 +93,7 @@ class RestoreMessage(IProcessDesc): res += html.safe_str( _("Running command:") ) - res += '
' + res += '
' res += html.safe_str(cmd) def cmdArg(x): @@ -119,7 +119,7 @@ class RestoreMessage(IProcessDesc): if no_args > 1: res += ' "' + html.safe_str(arg) + '"' - res += '
' + res += '
' return res