[Webware-devel] [ webware-Bugs-880472 ] Bug in HTTPResponse code

2004-02-04 Thread SourceForge.net
Bugs item #880472, was opened at 2004-01-20 04:12
Message generated for change (Comment added) made by jdhildeb
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=104866&aid=880472&group_id=4866

Category: WebKit
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Christoph Zwerschke (cito)
>Assigned to: Jason Hildebrand (jdhildeb)
Summary: Bug in HTTPResponse code

Initial Comment:
In the HTTPResponse module (see
http://webware.sourceforge.net/Webware-
0.8.1/WebKit/Docs/Source/Files/HTTPResponse.py.html)
you will find the following method for flushing the 
response cache

def flush(self, autoFlush=1):
"""..."""
if not self._committed:
self.commit()
self._strmOut.flush()
self._strmOut.autoCommit(1)

The last line should be very obviously changed to

self._strmOut.autoCommit(autoFlush)

Or do I miss something?

I also noticed a problem when I do a flush and a 
forward afterwards. Webware makes the forwarding, but 
somehow the forwarding servlet seems to overwrites 
the servlet to which it forwards in the servlet cache. 
Webware should prohibit forwarding when the response 
is already committed.

--

>Comment By: Jason Hildebrand (jdhildeb)
Date: 2004-02-04 18:24

Message:
Logged In: YES 
user_id=173690

Ok, I've applied the first bugfix to CVS -- thanks.  

With respect to the second problem, could you whip up a
small test case which demonstrates the problem?

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=104866&aid=880472&group_id=4866


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel


Re: [Webware-devel] Suggestion for Appserver script

2004-02-04 Thread Jason Hildebrand
On Fri, 2004-01-30 at 03:42, Christoph Zwerschke wrote:
> When debugging an application, I like to run the Appserver with
> unbuffered
> Python output (Python option -u). Also, it might make sense to run it
> with
> Python using optimization (Python option -O). However, you cannot
> give these
> parameters to the Appserver script, since they would be passed on to
> the
> ThreadedAppServer script, and not to Python. My suggestion is to
> catch these
> two options if they are given in advance, and only pass the rest of
> the
> parameters on to the ThreadedAppServer:

Thanks, Christoph.  I've applied this to CVS.

> Also, I noticed a minor flaw in WebKit/ImportSpy.py. There, the line

> if f[-4:] == '.pyc':
> should be replace to
> if f[-4:].lower() in ('.pyc', '.pyo'):

Ok, fixed this too.  Thanks. 

peace,
Jason



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel