Search the web
Sign In
New User? Sign Up
zope
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[Zope] HTML post processing in Zope   Message List  
Reply | Forward Message #144081 of 185931 |
Re: [Zope] HTML post processing in Zope

Am Donnerstag, den 05.05.2005, 14:58 +1200 schrieb Cyrille Bonnet:
> Hi all,
>
> I am trying to perform a post-processing on all HTTP responses, before
> they get sent to the browsers. I am using Zope 2.7.3 nad Plone 2.0.5.
>
> I had a look at the ZServer class: it seems to be the right place, but I
> don't understand all the code there and I am afraid to break something :-(
>
> Am I on the right tracks there? Could someone with great Zope knowledge
> be kind enough to point out which method I should change? (I want to
> change the HTML content, not the headers).

I wonder what kind of post processing do you want?
Since Zope creates all responses anyway, so why not
creating the responses you want in the first place?


_______________________________________________
Zope maillist - Zope@...
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )



Thu May 5, 2005 7:29 am

tino@...
Send Email Send Email

Forward
Message #144081 of 185931 |
Expand Messages Author Sort by Date

Hi all, I am trying to perform a post-processing on all HTTP responses, before they get sent to the browsers. I am using Zope 2.7.3 nad Plone 2.0.5. I had a...
Cyrille Bonnet
cyrille@...
Send Email
May 5, 2005
2:59 am

... I would recommend getting Apache or something like it to act as a proxy and do the rewriting there. That would likely be much cleaner than futzing with...
J Cameron Cooper
zope-l@...
Send Email
May 5, 2005
3:15 am

... I wonder what kind of post processing do you want? Since Zope creates all responses anyway, so why not creating the responses you want in the first place? ...
Tino Wildenhain
tino@...
Send Email
May 5, 2005
7:29 am

... I think "ZPublisher.HTTPResponse.HTTPResponse" is the better place for tidying up. -- Dieter _______________________________________________ Zope maillist...
Dieter Maurer
dieter@...
Send Email
May 5, 2005
9:09 pm

Thanks for all your answers, I usually use Apache to change HTTP headers. But here, I need to post-process the HTML. The reason is that the NZ Government...
Cyrille Bonnet
cyrille@...
Send Email
May 5, 2005
9:35 pm

... Yes, it's irritating isn't it? I've worked on an NZ government site before, but in PHP. You can use Apache to parse the HTML, mod_python allows you to use ...
Phillip Hutchings
sitharus@...
Send Email
May 5, 2005
9:45 pm

Answering my own questions: Testing for text/html does the trick as WebDAV follows some other content type (probably text/xml). It works great! Cyrille ... ...
Cyrille Bonnet
cyrille@...
Send Email
May 17, 2005
5:42 am

Hi there, I only joined up a few weeks ago, so I missed the beginning of the thread, but I just thought I'd let you know that the __ac_name and __ac_password...
Tom Payne
tom@...
Send Email
May 24, 2005
9:33 am

Hi all, I got the filter to work. I just added 3 lines of code in "ZPublisher.HTTPResponse.HTTPResponse" (thanks for your suggestion, Dieter): ...
Cyrille Bonnet
cyrille@...
Send Email
May 17, 2005
1:38 am

... You can't be serious, right? The above do NOT suddenly make it HTML 4.01, I'm 90% sure ;-) Really, you should be customising the templates to serve HTML in...
Chris Withers
chris@...
Send Email
May 23, 2005
8:58 pm

Hi Chris, Well, you'd better believe it :-) It works for me so far. But if you have specific examples that I can use to improve the filter, they would be very...
Cyrille Bonnet
cyrille@...
Send Email
May 23, 2005
9:25 pm

... I think a filter is a totally abhorent way of attempting to tackle this... ... Tee hee, so much for Plone's amazing standards compliance ;-) ... Well, your...
Chris Withers
chris@...
Send Email
May 26, 2005
8:19 am

... OK, but again, if you have a better idea, it is welcome. Modifying 12 templates does not look much better to me. ... Looking closer, it was actually the...
Cyrille Bonnet
cyrille@...
Send Email
May 26, 2005
9:04 pm

... I have unitws product (from somebody else) which does modifications on the resulted html code. It is able to do any modifications, I was modify them to do...
Jaroslav Lukesh
lukesh@...
Send Email
May 24, 2005
4:59 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help