def getConnection(self): return PyPgSQLcache.getConnection(Configuration.SessionHandler_PostgreSQLAlias)
######################################################################## # Copyright (C) 2002 Andrew T. Csillag <*****@*****.**> # # You may distribute under the terms of either the GNU General # Public License or the SkunkWeb License, as specified in the # README file. ######################################################################## from SkunkWeb import Configuration import PyPgSQLcache Configuration.mergeDefaults(PyPgSQLConnectParams={}, ) for u, p in Configuration.PyPgSQLConnectParams.items(): PyPgSQLcache.initUser(u, p) def rollback(*args): for v in PyPgSQLcache._connections.values(): v.rollback() from requestHandler.requestHandler import CleanupRequest CleanupRequest.addFunction(rollback)
######################################################################## # Copyright (C) 2002 Andrew T. Csillag <*****@*****.**> # # You may distribute under the terms of either the GNU General # Public License or the SkunkWeb License, as specified in the # README file. ######################################################################## from SkunkWeb import Configuration import PyPgSQLcache Configuration.mergeDefaults( PyPgSQLConnectParams = {}, ) for u, p in Configuration.PyPgSQLConnectParams.items(): PyPgSQLcache.initUser ( u, p ) def rollback(*args): for v in PyPgSQLcache._connections.values(): v.rollback() from requestHandler.requestHandler import CleanupRequest CleanupRequest.addFunction(rollback)
def getConnection(self): return PyPgSQLcache.getConnection( Configuration.SessionHandler_PostgreSQLAlias)