Re: [Zope3-Users] Re: Is this a bug of HTTP response's head handling? (publisherhttpserver.py)

2006-09-21 Thread Simon Hang
. close_it = 1 On 9/21/06, Philipp von Weitershausen [EMAIL PROTECTED] wrote: Simon Hang wrote: How about below changes?There aren't many of us who know the zope.server code that well,unfortunately. This is one of the reasons we want to get out of theserver business.That said, it would *much* easier

Re: [Zope3-Users] Re: Is this a bug of HTTP response's head handling? (publisherhttpserver.py)

2006-09-21 Thread Simon Hang
Philipp, Sorry for being lazy, and thanks for the tips. Here is my update version. --- httptask.py.orig Fri Jan 06 02:15:48 2006+++ httptask.py Fri Sep 22 09:13:48 2006@@ -126,6 +126,11 @@ else: close_it = 1 elif version == '1.1':+ #modified by Simon + if 'connection: close' in (header.lower() for

[Zope3-Users] Re: Is this a bug of HTTP response's head handling? (publisherhttpserver.py)

2006-09-20 Thread Simon Hang
: # Close if unrecognized HTTP version. close_it = 1 self.close_on_finish = close_it if close_it: self.response_headers['Connection'] = 'close' On 9/19/06, Simon Hang [EMAIL PROTECTED] wrote: Dear all, While I was exploringmy options to implement NTLM authentication, I found some strange behavior

Re: [Zope3-Users] Re: NTLM credential plugin

2006-09-19 Thread Simon Hang
zope.server.http.httptask.HTTPTask, method prepareResponseHeaders(). to let this function also check accumulated_headers before decides to close the connection. Sorry, I left the modified code in my other pc, can't post the detail. Anybody can help? Thanks, SimonOn 9/15/06, Simon Hang [EMAIL PROTECTED] wrote: Hi

[Zope3-Users] Is this a bug of HTTP response's head handling? (publisherhttpserver.py)

2006-09-18 Thread Simon Hang
Dear all, While I was exploringmy options to implement NTLM authentication, I found some strange behavior of Zope HTTP server. in zope.server.http.wsgihttpserver.WSGIHTTPServer, It use below function to handle response's head: def start_response(status, headers): # Prepare the headers for

[Zope3-Users] NTLM credential plugin

2006-09-12 Thread Simon Hang
Hi, I'm thinging to write a NTLM credential plugin for zope3. But as I know, ntlm use 4-way handshake procedure, that means it needs two round-trips between server(zope3) and client(browser). When I look in the credential plugins, it has challenge mothed. But seems it is only design for 1

Re: [Zope3-Users] apache as zope3's frontend and NTLM

2005-11-10 Thread Simon Hang
Not under heavy load. Any machine should be able to handle this. I use the config below VirtualHost *:808 DocumentRoot/myplace/httpdoc Servernamemyserver ErrorLog logs/myserver-error.log CustomLog logs/myserver-access.log common Location / RewriteEngine On RewriteRule ^c:/ftscompass/htdocs(/?.*)

[Zope3-Users] apache as zope3's frontend and NTLM

2005-11-09 Thread Simon Hang
Dear all, I'm trying to use apache as zope3's frontend, and do NTLM authentication as well. I've done: 1. Installed mod_ntlm for apache 1.3, and tested. 2. Create a VirtualHost for zope3 instance, forwarding http request using rewrite engine. And tested. Now I try to put things together = A

Re: [Zope3-Users] MessageBoard tutorial deprecation warnings

2005-11-02 Thread Simon Hang
Hi Brad, You need to install the workflow add-on package for zope3 and try again. URL as below: http://www.zope.org/Products/Zope3-Packages Deprecation Warnings are only warning. The code won't break because of warnings. Cheers, Simon On 10/31/05, Brad Allen [EMAIL PROTECTED] wrote: The

[Zope3-Users] Any document for use ZopeDatabaseAdapter?

2005-10-28 Thread Simon Hang
Hi, Is there any document or examples for ZopeDatabaseAdapter? I need to do some sql query in my content object. Thanks, Simon ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] Any document for use ZopeDatabaseAdapter?

2005-10-27 Thread Simon Hang
Hi, Is there any document or examples for ZopeDatabaseAdapter? I need to do some sql query in my content object. Thanks, Simon ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users