At 10:20 AM 6/12/2001 -0400, Jeff Johnson wrote:
>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
>:)

self.application().foo  should work fine for a 'foo' that you create. This 
is ordinary Python after all.

Perhaps there was another problem where the attribute hadn't been set yet?

-Chuck


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

Reply via email to