call_alter_db() -> _call_alter_db(): name as internal-use only function
authorKarl O. Pinc <kop@karlpinc.com>
Sun, 3 Mar 2024 20:11:44 +0000 (14:11 -0600)
committerKarl O. Pinc <kop@karlpinc.com>
Sun, 3 Mar 2024 20:11:44 +0000 (14:11 -0600)
src/pgwui_core/core.py

index 206ecc232959d2e8b16b2cca9fef216bbe83d860..d08e8e14142a8b1f0948b03bfba5336d8e420b20 100644 (file)
@@ -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.