[Zope3-dev] Re: httpgz in zope.conf?

Tres Seaver tseaver at palladion.com
Mon Mar 20 09:53:52 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 \
    svn+ssh://svn.zope.org/repos/main/Zope/branches/2.9

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.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
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

iD8DBQFEHsIA+gerLs4ltQ4RAi3jAKCGCGQjISAsIKgvI9QiyyIHRN2FUQCeM+cZ
wgVKeFv3uwpAF47PYW4D/z8=
=B4lJ
-----END PGP SIGNATURE-----



More information about the Zope3-dev mailing list