At 09:24 PM 6/9/2001 -0700, Robin Dunn wrote:
>Unfortunately I realized too late that I still had my editor set to trim
>end of line whitespace so doing a patch will have lots of diffs that are
>only the spaces removed from the end of lines...
Actually, my editor does the same thing, so I end u
At 01:18 PM 6/11/2001 -0400, Jeff Johnson wrote:
>If this is right, should some of it be added to the docstring for
>DBPool? Currently it tells how to create the dbPool but not how to
>make it persist beyond a single servlet call.
We're at the intersection of a MiscUtils class and how to use it
At 01:18 PM 6/11/2001 -0400, Jeff Johnson wrote:
> > Webware.MiscUtils.DBPool
>
>That'll work for me. This is what I did, let me know if I did it
>wrong:
>
>__init__.py:
>def contextInitialize(app, ctxPath):
> from MiscUtils.DBPool import DBPool
> import pgdb
> app.dbPool
> Along the way I also found a couple
> bugs in 0.5.1. I'll try to isolate them and send a patch.
Attached are fixes for these bugs I found 0.5.1, one was already fixed in
the trunk, one wasn't.
I've also redone my changes in the CVS trunk version to allow running in a
directory different than
> Webware.MiscUtils.DBPool
That'll work for me. This is what I did, let me know if I did it
wrong:
__init__.py:
def contextInitialize(app, ctxPath):
from MiscUtils.DBPool import DBPool
import pgdb
app.dbPool = DBPool(pgdb, 10, 'myhost:mydb:myname:mypw')
SitePage.py:
cla
>
> What you've done sounds good to me. I think it's more appropriate for the
> main line of CVS instead of the 0.5.1 branch, though.
Okay, I wondered about that. I did look at the trunk version but something
wasn't working quite right when I tried it out and so I assumed that it
wasn't too sta
At 10:11 AM 6/11/2001 -0400, Jeff Johnson wrote:
>Hi everyone,
>
>I'm trying to figure out the best way to pool database connections so
>I was looking into how MiddleKit does it. I noticed this piece of
>code in MSSQLObjectStore.py and didn't know python could do this:
>
>def Klass:
> def
Hi everyone,
I'm trying to figure out the best way to pool database connections so
I was looking into how MiddleKit does it. I noticed this piece of
code in MSSQLObjectStore.py and didn't know python could do this:
def Klass:
def sqlTableName(self):
'''
R