Re: [Webware-discuss] WebKit needs restarting

2002-09-04 Thread Geoff Talvola
Which version of Webware are you using? There was a bug fix in CVS about 1-2 months ago that fixes a problem similar to what you're describing. As far as I know, the bug affects _all_ released versions of Webware so your only choice is to grab a snapshot from CVS. - Geoff On Wed, 2002-09-04 at

Re: [Webware-discuss] PSP: Set class vars?

2002-08-12 Thread Geoff Talvola
On Mon, 2002-08-12 at 07:59, Chuck Esterbrook wrote: > I see that PSP has a way to define methods for the page. But what if I > want the equivalent of: > > class SomePage(SuperPage): > shouldFooBar = 1 > > e.g., I want to set "shouldFooBar" at the class level. (The reason is > that SuperPa

Re: [Webware-discuss] possible bug in Application.py's use of theservlet instance cache

2002-08-10 Thread Geoff Talvola
On Fri, 2002-08-09 at 19:10, Tavis Rudd wrote: > On August 9, 2002 03:37 pm, Geoff Talvola wrote: > > On Fri, 2002-08-09 at 17:53, Tavis Rudd wrote: > > > Shouldn't _instanceCacheSize be used? It seems possible with the current > > > code for the number of in

Re: [Webware-discuss] possible bug in Application.py's use of theservlet instance cache

2002-08-09 Thread Geoff Talvola
On Fri, 2002-08-09 at 17:53, Tavis Rudd wrote: > Hi, > I was looking over the recent changes in Application.py that switched from > using a Queue to a list for the servlet instance cache and noticed something > odd. There doesn't seem to be any limit on the size of the cache. > > Line 105 rea

Re: [Webware-discuss] forward to non realtive urls

2002-07-30 Thread Geoff Talvola
Sounds like you want to redirect the browser with self.response().sendRedirect('http://...') - Geoff On Mon, 2002-07-29 at 14:23, Stefan Kuzminski wrote: > hi, > > I need to forward to a url which is not relative to the webware context.. > Not sure how to do this ( from a .psp page). I need t

Re: [Webware-discuss] MiddleKit/MySQL Threading Problem - Solved

2002-07-14 Thread Geoff Talvola
I just checked in a fix to Webware CVS. Give it a try. - Geoff On Sun, 2002-07-14 at 12:36, Geoff Talvola wrote: > This isn't a Python problem -- it's a bug in Webware. > > If you put a print statement at the end of UnboundMethodError.py you'll > find that the mo

Re: [Webware-discuss] MiddleKit/MySQL Threading Problem - Solved

2002-07-14 Thread Geoff Talvola
; ShowPix.py to the self.methodName, the errors stopped and I took the > opportunity (before stopping the AppServer) to write the test case described > above. > > If you need any other information, I can be reached at [EMAIL PROTECTED] > > Roger Haase > > >

Re: [Webware-discuss] RE: [Webware-devel] Webware distributionlayout/permissions (was Re: Webware (Free)BSD-Port?)

2002-07-12 Thread Geoff Talvola
I don't know how FreeBSD ports work, but did you have to write scripts to create this port? If so, they should be checked into Webware CVS so that it can be repeated. If you want CVS access yourself, see http://webware.colorstudy.net/twiki/bin/view/Webware/DeveloperGuidelines or you could just u

Re: [Webware-discuss] MiddleKit/MySQL Threading Problem?

2002-07-12 Thread Geoff Talvola
On Thu, 2002-07-11 at 15:06, Roger wrote: > > Any ideas on what to try next? > Not really. Are you willing to send me a copy of your code and the full traceback you're getting? I think I need to actually see the code to try to understand what's wrong. - Geoff

Re: [Webware-discuss] MiddleKit/MySQL Threading Problem? (longdescription)

2002-07-10 Thread Geoff Talvola
Roger, Can you add a print statement to the place in your SitePage module where you create the object store? It sounds to me like the module is getting reloaded for some reason. You can tell for sure by adding the print statement. - Geoff On Wed, 2002-07-10 at 17:22, Roger wrote: > I am not

Re: [Webware-discuss] Re: Session glitches with actions underSecurePage?

2002-07-09 Thread Geoff Talvola
On Thu, 2002-07-04 at 03:54, Steve Freitas wrote: > >>> 2) If you use your browser's BACK button to go back to the login form, then > >>> re-post the user name and password, it will always fail to log you in. This > >>> is by design. A unique random ID (I think it's called "loginid") is > >>> ge

Re: [Webware-discuss] Webkit.cgi and OneShot.cgi

2001-12-12 Thread Geoff Talvola
>Incidentally, I'm not trying to dump work onto anybody's plate. I'd >try to suggest a fix for this, if that would be appropriate--but I'm still >a Webware newbie. > >Thanks for any comments! > >Bill >"It is the time that you have wasted f

Re: [Webware-discuss] session cleanup

2001-11-29 Thread Geoff Talvola
ession hasn't expired. There's an expiring() method of the Session object which is supposed to get called when the session times out. So you could somehow replace Session with a subclass that defines that method to do what you want. I'm not sure if expiring() gets called in every plac

RE: [Webware-discuss] Clustering?

2001-11-29 Thread Geoff Talvola
ocking > > here, since multiple requests for the same session may be coming from > > different appservers at the same time. I'm not sure how to > > avoid wiping > > out one appserver's changes with another appserver's changes > > in that case. > >I sta

RE: [Webware-discuss] Clustering?

2001-11-29 Thread Geoff Talvola
requests for the same session may be coming from different appservers at the same time. I'm not sure how to avoid wiping out one appserver's changes with another appserver's changes in that case. -- - Geoff Talvola [EMAIL PROTECTED] ___ We

RE: [Webware-discuss] Clustering?

2001-11-29 Thread Geoff Talvola
TITY AS NewPrimaryKey SET NOCOUNT OFF In other words, @@IDENTITY is the last Identity value that was auto-generated on the given connection. The business with "SET NOCOUNT ON" and "SET NOCOUNT OFF" is needed due to a bug that I read about i

Re: [Webware-discuss] Clustering?

2001-11-28 Thread Geoff Talvola
ng of this? Last I looked >there they had the most configurable scaling stuff I'd seen. But there are plenty of existing solutions for load-balancing static sites, right? I was under the impression that there are a number of software and hardware solutions for that. Although I've nev

Re: [Webware-discuss] Clustering?

2001-11-28 Thread Geoff Talvola
olution. But it is really easy to implement and reduces the load on the database server since it won't have to act as a session store. If I had to scale to multiple boxes for performance reasons, this is the strategy I would implement first, since it seems like it's by far the

Re: [Webware-discuss] installation problem on linux

2001-11-28 Thread Geoff Talvola
t set up right, so that WebKit.cgi can't access the Webware directory. Try adding the following line into WebKit.cgi before the failing import: foobar = open('/home/davidbh/apps/Webware/WebKit/CGIAdapter.py').read() A

Re: [Webware-discuss] Gentlemen, start your engine! - Xitami

2001-11-28 Thread Geoff Talvola
a shot > >-Aaron Give it a try. It's really easy to install. It was a while ago that I used it, and I can't remember if I actually got Webware running with it, or if I stopped using Xitami before I discovered Webware. But I can't see any reason w

Re: [Webware-discuss] Gentlemen, start your engine!

2001-11-27 Thread Geoff Talvola
es the HTTP server process can hold onto the request and retry until the appserver has restarted - it makes the WebKit core more complicated since you're bundling in multiple protocols; by keeping the HTTP server process separate the core doesn't have to change at all Any others?

Re: [Webware-discuss] Hello and Questions

2001-11-26 Thread Geoff Talvola
wrappers around the Recordset objects to make them support iteration. The nice thing about using ADO is that most of the MS documentation contains code samples in Visual Basic with ADO, and it's easy to translate that to Python. -- - Geoff Talvola [EMAIL PROTECTED] ___

Re: [Webware-discuss] General inquiry

2001-11-26 Thread Geoff Talvola
At 09:48 PM 11/25/01 -0800, Chuck Esterbrook wrote: >On Sunday 25 November 2001 06:00 pm, Darryl wrote: > > Can middlekit do deletes? > >Yes, Geoff implemented them a month or 2 ago. I don't know if the docs are >updated or not Yes, I think the docs are up-to-date

Re: [Webware-discuss] XML-RPC authentication

2001-11-20 Thread Geoff Talvola
At 02:44 PM 11/20/01 -0600, Ian Bicking wrote: >On Tue, 2001-11-20 at 14:16, Geoff Talvola wrote: > > First, make sure that the Application.config setting > > IncludeTracebackInXMLRPCFault is set to 1. I think it is set to 1 by > > default, but I'm not positive. What

Re: [Webware-discuss] XML-RPC authentication

2001-11-20 Thread Geoff Talvola
d), params) File "d:\gat\tools\tools\Webware\WebKit\Examples\XMLRPCExample.py", line 25, in add return x + y TypeError: unsupported operand types for + >>> Have you been able to get that much working? Also, you can modify XMLRPCServlet.py so that it logs exceptions.

Re: [Webware-discuss] Behaviour of 'appserver.bat'

2001-11-20 Thread Geoff Talvola
eadedAppServer.py", line 146, in threadloop > rh.handleRequest() > File "WebKit\ThreadedAppServer.py", line 281, in handleRequest > dict_length = loads(chunk) >ValueError: bad marshal data" > >Anybody interested? Yesterday, when I used the async vers

[Webware-discuss] fixed Python 1.5.2 problems in CVS

2001-11-19 Thread Geoff Talvola
I checked in fixes for a few Python 1.5.2 incompatibilities that made their way into CVS recently. The tip of CVS should now work with Python 1.5.2 and up. -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED

[Webware-discuss] 2 fixed bugs

2001-11-16 Thread Geoff Talvola
ing Application.forward() in conjunction with FileSessionStore. -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] ListBox + Securepage question

2001-11-16 Thread Geoff Talvola
re having. Give them a try. You can use CVS, or grab them from the web at: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/webware/Webware/WebKit/Examples/ -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL

Re: [Webware-discuss] intelligent session management

2001-11-12 Thread Geoff Talvola
didn't look in >the sources very long but as both mechanisms (cookies and URL handling) are >implemented it shouldn't be too hard IMHO to combine them. How do you detect if the browser has cookies enabled? -- - Geoff Talvola [EMAIL PROTECTED] __

Re: [Webware-discuss] Caching efficiency (HTTP Headers)

2001-11-12 Thread Geoff Talvola
rk on this and submit it as a patch, try to follow the standard Webware naming conventions -- i.e. createdDate() instead of getCreatedDate(), etc. The style guidelines can be found here: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/webware/Webware/Docs/StyleGuidelines.raw?rev=HEAD&content-typ

Re: [Webware-discuss] Has anyone tried to stream a reportlab generated file from WebWare?

2001-11-09 Thread Geoff Talvola
would be greatly appreciated. I tried this a long time ago -- see if this article helps: http://www.geocrawler.com/archives/3/3854/2000/9/0/4351554/ If you get this to work, if you could add a brief section to the Webware Wiki that would be great. The Wiki is at http://webware.colorstudy.net/tw

Re: [Webware-discuss] has better performance than ?

2001-11-09 Thread Geoff Talvola
will require restarting the appserver every time you change the include files. Option 4 will probably compile faster than option 1, but obviously won't allow use of PSP tags. Basically, try them out and see if you notice any difference. I'm sure they're all fast enough

Re: [Webware-discuss] an informal WEP: refactoring webware's package layout and component system

2001-11-02 Thread Geoff Talvola
do anyway? On my platform it won't even load. ;-) You have to do some per-thread initialization and finalization in order to use COM in a multi-threaded program. So COMKit installs the proper hooks. Obviously it's Windows-only. -- - Geoff Talvola [EMAIL PROTECTED] _

Re: [Webware-discuss] an informal WEP: refactoring webware's package layout and component system

2001-11-01 Thread Geoff Talvola
an go from a StructuredText-like input to multiple output forms like HTML, PDF, and perhaps even the HTML Help format that's so useful on Windows? -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] an informal WEP: refactoring webware's package layout and component system

2001-11-01 Thread Geoff Talvola
nd UserKit. We use TaskKit in non-WebKit applications. It's useful in its own right. Let's keep it separate. -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] Out-of-order page rendering

2001-11-01 Thread Geoff Talvola
red and returned as a string instead of being sent out. I leave the implementation of self.capture() up to the reader :-) Also, I'm curious if people think this is a good approach. -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] PSP Question

2001-10-31 Thread Geoff Talvola
en Python syntax and Cheetah's different syntax. If you're going to bring in non-programmers to work on the design, then Cheetah is clearly a better option. -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] PSP Question

2001-10-31 Thread Geoff Talvola
that base class. Then you get the best of both worlds. You get more benefits from PSP if you're using an editor that's designed to show mixed code and HTML nicely. I use SciTE. http://www.scintilla.org/SciTE.html -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] Path question

2001-10-29 Thread Geoff Talvola
exts - I added this directory /SomeContext /SomeOtherContext /ErrorMsgs /Lib - I added this directory /Logs /Sessions /Static - I added this directory for static content to be served directly by Apache AppServer.bat Launch.py ... From

Re: [Webware-discuss] ImportError in Webware 0.6a1

2001-10-26 Thread Geoff Talvola
ctively but not in WebKit. Maybe sys.path, or the current working directory, or the particular set of modules that have already been imported? -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sou

Re: [Webware-discuss] Cans

2001-10-26 Thread Geoff Talvola
ithout having >to apply this patch. Yes, look at the FileUpload example servlet. It shows how to do file uploads, including getting the filename. -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://l

Re: [Webware-discuss] plans for Webware after 0.6?

2001-10-25 Thread Geoff Talvola
d certainly try out a Wiki for Webware. I've never participated in one before, so it'll be a good learning experience :-) -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

[Webware-discuss] scaling Webware up

2001-10-25 Thread Geoff Talvola
ssion handling. Fortunately, it would be easy to write a session store that used a database back-end. Or, without too much pain you could modify the adapters so that they always route requests for the same session to the same appserver. -- - Geoff Talvola [EMAIL PROT

Re: [Webware-discuss] newbie question

2001-10-24 Thread Geoff Talvola
no rights to enter my /home/net directory. After "chmod 755" on the >/home/net directory, it worked. We should really beef up WebKit.cgi so it prints a suggestion to this effect when it gets an ImportError. -- - Geoff Talvola [EMAIL PROTECTED] _

RE: [Webware-discuss] A few patches

2001-10-24 Thread Geoff Talvola
At 04:22 PM 10/24/01 -0400, Geoff Talvola wrote: >That brings up the larger question of "where do I put resources that are >global to the application?" > >I usually just put stuff like that into regular Python modules. Then >whenever I need it, I just import the modu

RE: [Webware-discuss] A few patches

2001-10-24 Thread Geoff Talvola
t; > > To: Ken Lalonde <[EMAIL PROTECTED]> > > Subject: Re: [Webware-discuss] A few patches > > > > Ken Lalonde wrote: > > | * WebKit/Application.py: > > | New method: getDbConnection() > > > > This is interesting, but I'm not sure that it

Re: [Webware-discuss] xml-rpc and/or webdav?

2001-10-23 Thread Geoff Talvola
evelop it as a base class that sits in the WebKit directory for now. If it comes to fruition, then we can decide whether to just include it in WebKit or put it in a separate Kit. -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] Webware death...

2001-10-22 Thread Geoff Talvola
. > , > <16384> > . > >So. It reads in what to write... but when it goes to >write to the socket self._socket.send(val) it crashes. > >Thoughts as to how to proceed? > >Clark -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] Webware death...

2001-10-22 Thread Geoff Talvola
the list. To my ears it sounds like an exception handler is needed around some socket code to handle broken connections. -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] Webware death...

2001-10-22 Thread Geoff Talvola
s/crashes one thread. >Also. I just put into "production" the recent CVS snapshot, >the same problem occurs. > >Thanks! -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

[Webware-discuss] updated MiscDownloads with new wkcgi.exe

2001-10-12 Thread Geoff Talvola
I've made another bugfix to wkcgi.exe and I've uploaded a compiled version for Windows to http://webware.sourceforge.net/MiscDownloads/ForCVS/Windows/ If you were having any trouble with wkcgi.exe, please give this one a try. -- - Geoff Talvola [EMAIL

[Webware-discuss] Cookie problem fixed in Webware CVS

2001-10-10 Thread Geoff Talvola
bUtils/Cookie.py and WebKit/Cookie.py with the respective files from CVS. You can pull those files over the web using this URL -- you don't need to mess around with CVS if you don't want to. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/webware/Webware/ -- - Geo

RE: [Webware-discuss] bug in WebUtils/Cookie.py

2001-10-10 Thread Geoff Talvola
ied ascii_letters into Cookie.py and now all is well. If >someone can test this modified Cookie.py on python 1.5.2, maybe we can >get it added to Webware. I'm working on it right now. I'll send a message when it's checked into CVS. -- - Geoff Talvola [EMAIL PR

Re: [Webware-discuss] HTTPS (off-topic)

2001-10-09 Thread Geoff Talvola
for Windows at http://www.modssl.org/contrib/ I'm using the one called Apache_1.3.20-Mod_SSL_2.8.4-OpenSSL_0.9.6a-WIN32.zip For client-side usage, check out M2Crypto at http://www.post1.com/home/ngps/m2/ . We're using its XML-RPC functionality in a Python client to access an XML-RP

Re: [Webware-discuss] Question about self.response().sendRedirect()

2001-10-04 Thread Geoff Talvola
he other thing to consider is using self.application().forwardRequest() instead of sendRedirect(). This causes the forwarding to happen entirely inside of the server instead of bouncing the redirect back to the application. The advantage is that forwarding is very fast. The disadvantage is that

Re: [Webware-discuss] unhandled error in webware

2001-10-04 Thread Geoff Talvola
At 07:37 AM 10/4/01 -0700, Chuck Esterbrook wrote: >At 11:58 AM 10/2/2001 -0400, Geoff Talvola wrote: >>I also get errors (but they are different errors) when I run >>AsyncThreadedHTTPServer.py on my machine. So you're not the only one >>having problems. > >

Re: [Webware-discuss] unhandled error in webware

2001-10-02 Thread Geoff Talvola
problem; I recently pulled >some classes I wrote out of the same path as the servlets that call them; >they are importing just fine, but it may have some interaction. > >Any ideas? > >Thanks. -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] Webware & WebKit Security and DOS

2001-10-01 Thread Geoff Talvola
I attempt to use >the <%@page threadSafe="yes"%> or <%@ page isInstanceSafe="yes"%> , I >receive a No Page Directive error. I'm not sure about those parameters, but I can tell you that I get excellent performance from W

Re: AW: [Webware-discuss] COM Kit and OneShot

2001-10-01 Thread Geoff Talvola
;Not that I am not happy with the CVS snapshots, I am just curious... Chuck said he was looking for a volunteer to put together the next release. I'll try to find the time to do a new release candidate sometime in the next 2 weeks, but I'm not making any promises :-) -- -

Re: [Webware-discuss] COM Kit and OneShot

2001-09-25 Thread Geoff Talvola
snapshot from CVS). I think all you need to do is make sure that EnableCOM is set to 1 in your AppServer.config file. If that doesn't work, let me know what kind of error you're getting. -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware

Re: AW: [Webware-discuss] Debugging? Help!

2001-09-24 Thread Geoff Talvola
ou know if this could be made to work with PythonWin? -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] Debugging? Help!

2001-09-21 Thread Geoff Talvola
ple inherit from your "logic" mixins and your SitePage class. But there are other ways besides mixins to accomplish this. Of course there's always print statements -- I use those quite often too :-) -- - Geoff Talvola [EMAIL PROTECTED] ___

RE: [Webware-discuss] Webware/Webkit and development environments

2001-07-26 Thread Geoff Talvola
At 09:02 AM 7/26/2001 +0200, Mark Gebhardt wrote: >Thanks Chuck > >It seems to be working fine with the few developers that we have. >Obviously though, on larger projects (say 10/15 developers +) this will >become prohibitive due to the disk space and time consumed in setting up >all the separate

Re: [Webware-discuss] Webware/Webkit and development environments

2001-07-23 Thread Geoff Talvola
ng to do. You can look into the "MakeAppWorkDir.py" stuff that Robin Dunn checked into CVS recently. Its purpose is to set up independent working directories that are isolated from one another, but share common Webware code from a central location. But there's also nothi

Re: [Webware-discuss] RTFM (Was: [Slightly off-topic] Cookies driving me mad (Was: MiddleKit: Something wrong with list of ?)

2001-06-28 Thread Geoff Talvola
Then I added a sleep() method to my SitePage that takes any cookies that were in the request field "cookies" and actually sets them. I don't have time to go into any more detail but if you really need to be able to set a cookie and then forward to another servlet, th

Re: [Webware-discuss] ModSnakeAdapter patch

2001-06-26 Thread Geoff Talvola
kept up to date. > > > >Gah! I meant ModSnakeAdapter. I don't know why I typo'd that... Another question, are you using 0.5.1rc3 or are you using a CVS checkout? I suspect that ModSnakeAdapter is broken in other ways in CVS but I can't verify it because I use Windo

Re: [Webware-discuss] ModSnakeAdapter patch

2001-06-26 Thread Geoff Talvola
c136 ><req.headers_out[header[0]] = header[1] >--- > >req.headers_out[header[0]] = string.join(header[1:], ":") > >Regards, > >David O'Callaghan > > >_______ >Webware-d

[Webware-discuss] cvs update (cgitb)

2001-06-22 Thread Geoff Talvola
y from Python 2.1 if available, otherwise it'll use the one in MiscUtils. I also left the configuration the way I had originally set it up, with the "IncludeFancyTraceback" and "FancyTracebackContext" settings. Sorry it took so long to get your patch into Webwa

Re: [Webware-discuss] cvs update

2001-06-22 Thread Geoff Talvola
At 03:38 PM 6/22/01 -0500, you wrote: >Geoff Talvola <[EMAIL PROTECTED]> wrote: > > >Oh, I think I made two small changes to inspect: inspect.trace, so it > > >could take the exec_info as an argument, and inspect.getsourcefile, to > > >look for files througho

Re: [Webware-discuss] cvs update

2001-06-22 Thread Geoff Talvola
At 03:45 PM 6/22/01 -0400, Chuck Esterbrook wrote: >At 03:40 PM 6/22/2001 -0400, Geoff Talvola wrote: >>Could we just include the %(WEBWARE)s type strings in the actual >>Application.config and modify the code that reads it to interpolate in >>the right values? > >I

Re: [Webware-discuss] cvs update

2001-06-22 Thread Geoff Talvola
At 02:51 PM 6/22/01 -0500, Ian Bicking wrote: >Geoff Talvola <[EMAIL PROTECTED]> wrote: > > I downloaded the patch. I couldn't get your modified version of cgitb.py > > to work. It worked running it from the command line as a self-test, > but it > > failed wh

Re: [Webware-discuss] cvs update

2001-06-22 Thread Geoff Talvola
ecked into CVS, rather than embedding all of the default config information in triple-quoted strings in an out-of-the-way place like bin/MakeAppWorkDir.py. Same with the OneShot.cgi and WebKit.cgi copies that are embedded in MakeAppWorkDir.py. Could we just include the %(WEBWAR

Re: [Webware-discuss] cvs update

2001-06-22 Thread Geoff Talvola
At 03:00 PM 6/22/01 -0400, Geoff Talvola wrote: >Any change MakeAppWorkDir.py could pick up the standard Application.config >and just make modifications to it? ^^ chance I guess I shouldn't rely on spell-check to ensure that my emails are bug-free :-) -- - Ge

Re: [Webware-discuss] cvs update

2001-06-22 Thread Geoff Talvola
At 02:25 PM 6/22/01 -0400, Geoff Talvola wrote: >At 01:18 PM 6/22/01 -0500, Ian Bicking wrote: >>Did you see the patch I submitted on sourceforge for this? It >>included a modified version of cgitb with several small (but I think >>important) enhancements. > >No, I

Re: [Webware-discuss] cvs update

2001-06-22 Thread Geoff Talvola
I'm not too keen on having to remember yet _another_ place to edit every time we change a config option. Any change MakeAppWorkDir.py could pick up the standard Application.config and just make modifications to it? -- - Geoff Talvola [EMAIL PROTECTED] _

Re: [Webware-discuss] cvs update

2001-06-22 Thread Geoff Talvola
At 01:18 PM 6/22/01 -0500, Ian Bicking wrote: >Did you see the patch I submitted on sourceforge for this? It >included a modified version of cgitb with several small (but I think >important) enhancements. No, I didn't know about the patch. I'll take a look right now. >

[Webware-discuss] cvs update

2001-06-22 Thread Geoff Talvola
from http://web.lfw.org/python/ , and if you are not using Python 2.1, you will also need to install inspect.py and pydoc.py, also available from the same site. FancyTracebackContext = 5 The number of lines of source code context to show if IncludeFancyTraceback is turned on. -- - Geoff Ta

Re: [Webware-discuss] Session Handling, Timeouts and Cookies

2001-06-21 Thread Geoff Talvola
is by setting the IgnoreInvalidSession setting in Application.config to 1. -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/webware-discuss

[Webware-discuss] cvs update

2001-06-19 Thread Geoff Talvola
I fixed ThreadedAppServer.py and OneShotAdapter.py so that binary file uploads work properly on Windows. I've tested with WebKit.cgi and OneShot.cgi; I'll try it out with mod_webkit later today. - Geoff ___ Webware-discuss mailing list [EMAIL PROT

Re: [Webware-discuss] cvs update: MakeAppWorkDir ...

2001-06-18 Thread Geoff Talvola
Some archiving tools get confused by zero-length files. -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] Problem in SecurePage

2001-06-18 Thread Geoff Talvola
At 12:34 PM 6/18/2001 +0200, Albert Brandl wrote: >Hi! > >I think I've found a problem with SecurePage.py. The information on valid >users is stored in a session object. For security reasons, sessions >expire after a certain amount of time. Unfortunately, SecurePage does >not take this into accoun

[Webware-discuss] Windows deployment

2001-06-06 Thread Geoff Talvola
mod_python 2.7.4. This fixes a threading bug that caused Apache to return incorrect results or crash under heavy load. Also, I have compiled and tested mod_webkit on Windows NT, and it also works, so I have updated the install guide to indicate that fact. -- - Geoff Talvola [EMAIL PROTECTED

Re: AW: [Webware-discuss] MiddleKit and WebKit

2001-05-29 Thread Geoff Talvola
At 08:24 AM 5/28/2001 +0200, Jörn Schrader wrote: > >This isn't thread-safe -- 2 servlets could create the store at the same >time. > > > >You're better off putting the store initialization into a module that gets > >imported -- then Python automatically ensures that only one thread imports > >it

[Webware-discuss] Storing class instances in sessions works with CVS Webware!

2001-05-23 Thread Geoff Talvola
ural = '' self.writeln(" You've been here %d time%s." % (count, plural)) self.writeln(' Try hitting RELOAD now.') -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] Turning off disk caching?

2001-05-23 Thread Geoff Talvola
IL PROTECTED] > > >http://lists.sourceforge.net/lists/listinfo/webware-discuss > > >______ >Do You Yahoo!? >Yahoo! Auctions - buy the things you want at great prices >http://auctions.yahoo.com/ > >___ >Webware-discuss mailing list >[EMAIL PROTECTED] >http://lists.sourceforge.net/lists/listinfo/webware-discuss -- - Geoff Talvola [EMAIL PROTECTED] ___ Webware-discuss mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] MiddleKit and WebKit

2001-05-23 Thread Geoff Talvola
a module that gets imported -- then Python automatically ensures that only one thread imports it at once. (Either that or you should explicitly use a threading.Lock object to make it thread-safe.) If you want to "pre-load" the store when the app server starts up to reduce response time

Re: [Webware-discuss] MiddleKit and WebKit

2001-05-23 Thread Geoff Talvola
xecuted once (unless you use reload). And it also locks the threads so that so other thread can import the same module at the same time. So this solution is safe even in a threaded environment like WebKit. -- - Geoff Talvola [EMAIL PROTECTED] ___