public inbox for [email protected]  
help / color / mirror / Atom feed
From: Murtuza Zabuawala <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin4][RM#5279] Fixed: pgAdmin4 does not start with Python2 environment
Date: Fri, 20 Mar 2020 13:59:00 +0530
Message-ID: <CAKKotZS=F40P+XYxmSfpTnCooRhsgjGLk=gZ1UBrvpNOG8azfg@mail.gmail.com> (raw)

Hi,

PFA patch to remove the unicode character from source code which was
causing the issue on Python2 environment.


--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


Attachments:

  [application/octet-stream] remove_unicode_character_from_source.diff (1.6K, 3-remove_unicode_character_from_source.diff)
  download | inline diff:
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/partitions/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/partitions/__init__.py
index 8aaccf13fc..2892c01395 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/partitions/__init__.py
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/partitions/__init__.py
@@ -495,7 +495,7 @@ class PartitionsView(BaseTableView, DataTypeReader, VacuumSettings,
         partition_data['default_partition_header'] = \
             '-- Create a default partition to prevent the data loss.\n' \
             '-- It helps when none of the partitions of a relation\n' \
-            '-- matches the inserted data.'
+            '-- matches the inserted data.'
 
         # Create temporary name for partitions
         for item in source_data['partitions']:
diff --git a/web/pgadmin/tools/schema_diff/__init__.py b/web/pgadmin/tools/schema_diff/__init__.py
index 0a1402e6cb..e627de9dcc 100644
--- a/web/pgadmin/tools/schema_diff/__init__.py
+++ b/web/pgadmin/tools/schema_diff/__init__.py
@@ -569,7 +569,7 @@ def check_version_compatibility(sid, tid):
     tar_manager = driver.connection_manager(tar_server.id)
 
     if src_manager.server_type != tar_manager.server_type:
-        return False, gettext('Schema diff does not support the comparison '
+        return False, gettext('Schema diff does not support the comparison '
                               'between Postgres Server and EDB Postgres '
                               'Advanced Server.')
 


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [pgAdmin4][RM#5279] Fixed: pgAdmin4 does not start with Python2 environment
  In-Reply-To: <CAKKotZS=F40P+XYxmSfpTnCooRhsgjGLk=gZ1UBrvpNOG8azfg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox