From: Karl O. Pinc Date: Sun, 3 Mar 2024 20:11:44 +0000 (-0600) Subject: call_alter_db() -> _call_alter_db(): name as internal-use only function X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=5128e6ab458062f3bc0a6afa92a1f0179b614fad;p=pgwui_core call_alter_db() -> _call_alter_db(): name as internal-use only function --- diff --git a/src/pgwui_core/core.py b/src/pgwui_core/core.py index 206ecc2..d08e8e1 100644 --- a/src/pgwui_core/core.py +++ b/src/pgwui_core/core.py @@ -1446,7 +1446,7 @@ class DBConnector(object): self.uh = uh self._server_encoding = None - def call_alter_db(self, conn): + def _call_alter_db(self, conn): ''' Alter the contents of the db. @@ -1624,7 +1624,7 @@ class DBConnector(object): havecreds = False else: havecreds = True - errors = self.call_alter_db(func, conn) + errors = self._call_alter_db(func, conn) self.uh.session.update({'havecreds': havecreds}) return (errors, response) @@ -1729,7 +1729,7 @@ class NoTransactionEngine(DBConnector): ''' super(NoTransactionEngine, self).__init__(uh) - def call_alter_db(self, func, conn): + def _call_alter_db(self, func, conn): ''' Call a database modification function with a db connection, turning off the automatic wrapping of the activity in @@ -1808,7 +1808,7 @@ class UnsafeUploadEngine(DBConnector): ''' super(UnsafeUploadEngine, self).__init__(uh) - def call_alter_db(self, func, conn): + def _call_alter_db(self, func, conn): ''' Call a database modification function with a connection.