> 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 properly
> in WebKit. I suppose it does belong in the doc string of the
> MiscUtils
> class under "WebKit integration".
>
> By the way, there isn't a lot of need for valueForKey() if
> you are passing
> a string literal. Unless you want to be able to switch the
> dbPool attribute
> between foo, _foo and foo() without changing SitePage.
>

I can't even remember how I found valueForKey() in the first place.  I
wanted to just refer to dbPool with self.application().dbPool but it
doesn't work so I used valueForKey().  What's the correct way to do
this?

Hey, I just realized that Geoff's solution keeps the dbPool as a
global instead of sticking it in the application, I keep forgetting I
can do that :)  I've got some other persistant stuff that I was
sticking into Application that I can move to module scope.  I'd still
like to know the proper way to reference Application attributes though
:)

Regards,
Jeff


_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to