Refresh is wrong word - sorry will fix

That function is a placeholder for whatever we turn into the "take the conn
and put nearly back in the pool"



Paul Brian
07540 456 115
paul@mikadosoftware.com
@lifeisstillgood
pbrian.mikadosoftware.com

On 21 May 2013, at 15:31, Michael Mulich <notifications@github.com> wrote:

In rhaptos2/repo/sessioncache.py:

> +    """
> +    conn = getconn()
> +    cur = conn.cursor()
> +    cur.execute(insql, params)
> +    conn.commit()
> +    cur.close()
> +    connection_refresh(conn)  #I can rollback here, its a SELECT
> +
> +
> +
> +def connection_refresh(conn):
> +    """
> +    Connections should be pooled and returned here.
> +
> +    """
> +    conn.close()

How does this refresh if the connection closes? Perhaps I'm missing how
something under the hood works.

—
Reply to this email directly or view it on
GitHub<https://github.com/Connexions/rhaptos2.repo/pull/131/files#r4317850>
.

-- 


www.mikadosoftware.com

See your software improve with every change.