RE: [Webware-discuss] AppServer shutdown bug in 0.7 on python2.2?

2002-06-24 Thread Hancock, David (DHANCOCK)
Well, "a few days" turned into a month. Unfortunately, upgrading to Python 2.2.1 didn't clear the traceback-page-hanging problem for me. (Different thread, I know.) Cheers! -- David Hancock | [EMAIL PROTECTED] | 410-266-4384 -Original Message- From: Hancock, David (DHANCOCK) Sent: Mo

[Webware-discuss] webware and aolserver

2002-06-24 Thread Ian Lipsky
Just wondering if anyone knows of any adapter out there to get psp pages working under aol server? Ian --- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ Webware-discuss mailing list [EMAI

RE: [Webware-discuss] performance problem?

2002-06-24 Thread Luke Opperman
We are also experiencing (perhaps) similar PSP problems. Sample error: Traceback (most recent call last): File ".\WebKit\Application.py", line 388, in dispatchRequest self.handleGoodURL(transaction) File ".\WebKit\Application.py", line 534, in handleGoodURL self.createServletInTransac

RE: [Webware-discuss] performance problem?

2002-06-24 Thread Geoffrey Talvola
I can't reproduce the problem here. And I still can't figure out why it would need to recompile the PSP file unless the PSP file changed on disk. The key chunk of code in PSPServletFactory.py is lines 162-165: if self._cacheClassFiles and os.path.exists(cachedfilename) and os.st

Re: [Webware-discuss] performance problem?

2002-06-24 Thread Lars Rustemeier
On Mon, Jun 24, 2002 at 01:20:46PM -0400, Geoffrey Talvola wrote: > No, what I did was add a flag ClearPSPCacheOnStart which defaults to 1, but > if you set it to 0, then it doesn't clear out the PSP cache when you start > the app server. > in our config the ClearPSPCacheOnStart is set to the de

Re: [Webware-discuss] performance problem?

2002-06-24 Thread Lars Rustemeier
thanks for the quick reply, On Mon, Jun 24, 2002 at 12:49:30PM -0400, Geoffrey Talvola wrote: > I just glanced at the PSP code (from CVS) and it looks like it should > _never_ have to recompile the PSP page once it has been compiled, unless you > restart the appserver or the modification time of

RE: [Webware-discuss] Profiling

2002-06-24 Thread Edmund Lian
Geoff wrote: >>The biggest bottleneck for me has always been SQL (queries on large tables without adequate indexes, or unnecessary repetition of queries when a single query would suffice, etc).<< I did some basic timing over the weekend to see why things were running more slowly than I expected

RE: [Webware-discuss] performance problem?

2002-06-24 Thread Geoffrey Talvola
No, what I did was add a flag ClearPSPCacheOnStart which defaults to 1, but if you set it to 0, then it doesn't clear out the PSP cache when you start the app server. - Geoff > -Original Message- > From: Love, Jay [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 24, 2002 1:15 PM > To: Geo

RE: [Webware-discuss] performance problem?

2002-06-24 Thread Love, Jay
Geoff, didn't you add a debugging mode that always recompiles the PSP? Could that be on? Jay > -Original Message- > From: Geoffrey Talvola [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 24, 2002 12:50 PM > To: 'Lars Rustemeier'; [EMAIL PROTECTED] > Subject: RE: [Webware-discuss] perform

RE: [Webware-discuss] performance problem?

2002-06-24 Thread Geoffrey Talvola
Lars Rustemeier wrote: > > hi guys, > > this afternoon we've been stress testing our webkit-powered servers by > making lots of requests for a single .psp-page, containing a > simple threadsafe singleton counter counting up the number of > times the > page been rendered. some of the times the s

[Webware-discuss] performance problem?

2002-06-24 Thread Lars Rustemeier
hi guys, this afternoon we've been stress testing our webkit-powered servers by making lots of requests for a single .psp-page, containing a simple threadsafe singleton counter counting up the number of times the page been rendered. some of the times the server registred an error giving the follo

RE: [Webware-discuss] Understanding sessions

2002-06-24 Thread Geoffrey Talvola
Edmund Lian wrote: > Geoff wrote: > > >I'll bet it's an unfortunate timing issue caused by your use > of OneShot, > >which has to load and save the session on each request. The redirect > >results in an immediate new copy of OneShot being fired up, > which probably > >reads in the old values f

RE: [Webware-discuss] Getting INPUT form array elements

2002-06-24 Thread Geoffrey Talvola
WebKit handles this the same way as Python's cgi module. You get a string if one checkbox is selected, or a list of strings if two or more checkboxes are selected. I have a method like this in my SitePage (base class for all of my servlets) that I use to get list fields: def listField(s

Re: [Webware-discuss] OT: Python editor recommendation?

2002-06-24 Thread David Eriksson
Hey I'm quite satisfied with BB, you just have to tell it when to use auto-indent. Also, bbedit does the work with the triple ''' or """. >BBEdit (Mac): Auto-indent? What auto-indent? Besides, using the Mac >invalidates my server dogfood rule. -

RE: [Webware-discuss] Profiling

2002-06-24 Thread Geoffrey Talvola
The biggest bottleneck for me has always been SQL (queries on large tables without adequate indexes, or unnecessary repetition of queries when a single query would suffice, etc). All of my SQL goes through a few wrapper methods, so in the past I've done some simple profiling by adding timing code