Re: [Zope3-dev] httpgz in zope.conf?
On Mar 21, 2006, at 8:53 AM, Stephan Richter wrote: On Tuesday 21 March 2006 08:41, Jim Washington wrote: Perhaps another proposal could suggest a method for registering and sequencing post-processing utilities? I think WSGI middleware components are the answer here. In general, I agree. I think almost all, or maybe even all, of Jim's examples belong there. However, It would be outside the app server, so something inside might be more desirable. Right. In particular, while most of the transforms that Jim listed need no interaction with the app server except to receive the output, resourcelibrary works more naturally if there is access to the application. That said, after thinking about it a little, resourcelibrary functionality might work also as a WSGI middleware piece: the middleware would stash an empty set in the WSGI environ, and then components wanting to use resourcelibrary would look for the key in request.environment, and if it exists, add their request to the set. Then when the middleware gets the output, it would analyze the set and add the requested resource link/code and dependencies to the output. It might have to move away from Zope 3 resources, since the middleware typically wouldn't have access to a database connection... The biggest losses here I can think of would be Zope 3- integrated virtual host awareness, and the possibility of hooking ZODB resources into the resourcelibrary, as TTW development might want. That said, the WSGI approach might be a win for resourcelibrary. And implementing all of the other bits Jim mentioned, including httpgz, as WSGI bits I think would be a win for us and potentially for other WSGI-compliant frameworks. Gary ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] httpgz in zope.conf?
On Tuesday 21 March 2006 08:41, Jim Washington wrote: > Perhaps another proposal could suggest a method for registering and > sequencing post-processing utilities? I think WSGI middleware components are the answer here. However, It would be outside the app server, so something inside might be more desirable. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] httpgz in zope.conf?
Gary Poster wrote: On Mar 20, 2006, at 9:39 AM, Stephan Richter wrote: On Monday 20 March 2006 09:35, Jim Washington wrote: [...] BTW, I would be glad to see a proposal to add this to the core. I think httpgz is general very interesting to a lot of people. +1 If it goes into the core, httpgz can be done much more elegantly. Perhaps another proposal could suggest a method for registering and sequencing post-processing utilities? I can think of several possible post-content-generation operations that might take advantage of such a hook. - javascript minimization / obfuscation - watermarking or tagging pdf's and images - inserting 'this is the development site, not the real site' or copyright statements - tidying - wow the folks that 'view source' - httpgz - zc.resourcelibrary -Jim Washington ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] httpgz in zope.conf?
On Mar 20, 2006, at 9:39 AM, Stephan Richter wrote: On Monday 20 March 2006 09:35, Jim Washington wrote: [...] BTW, I would be glad to see a proposal to add this to the core. I think httpgz is general very interesting to a lot of people. +1 Gary ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] httpgz in zope.conf?
On Monday 20 March 2006 09:35, Jim Washington wrote: > I am wondering what the best mechanism for turning this on and off would > be. I suppose it is simple enough to insert and remove the > httpgz-configure.zcml file in etc/package-includes, but is there a place > for third-party hooks in zope.conf? Or would that be a bad idea? Unfortunately, we do not have a good answer for third parties yet. I think this relates very much to the discussion Jim started on configuration files. BTW, I would be glad to see a proposal to add this to the core. I think httpgz is general very interesting to a lot of people. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com