-----BEGIN PGP SIGNED MESSAGE-----
Jim Washington wrote:
> I announced release of httpgz, http://zif.hill-street.net/httpgz on
> Zope3-Users this past weekend.
> It does very nice things to bandwidth. One particular page (tabular and
> very repetitious) went from around 400K to 25K for the client.
> MochiKit.js went from 94254 bytes to 24854 bytes. This makes web pages
> seem much faster, particularly on slower connections.
> 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?
There is a mechanism for registering third party schemas in ZConfig.
Zope2 leverages this support, declaring an abstract section type
('<product-config>'), which allows products to register custom section
types (they can also just add simple key value pairs). The SVN checkins
which enabled this:
$ svndiff -r 39634:39652 \
Products define custom section types in a 'component.xml', which must
then be imported into the zope.conf (via '%import') before a section of
that type may be used.
Zope3 could add a similar abstract section type to its top-level schema,
for use by third-party extensions. Such a change would *not* require
settling the config-file-format debate.
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Zope3-dev mailing list