-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Diez B. Roggisch wrote: >> zopelib was a way to get egg-based deployment of Zope prior to the fully >> egg-based 2.12. You need either to upgrade to use Zope 2.12 (and drop >> zopelib), or else stay on Python 2.4. > > > Ok, I'm happy to upgrade to zope2.12. In fact, I just installed it. But > now obviously the recipes given on repoze.org doen't work. Googling for > zope2 & WSGI-integration only leads to them. > > Any suggestions on how to make zope2 work with mod_wsgi?
The function, 'ZPublisher.WSGIPublisher.publish_module' is a WSGI application: likely what you need is a your_app.wsgi module which calls the Zope starup code and then sets that function as 'spplication'. Something like (untested): # foo.wsgi from Zope2.startup import startup from ZPublisher.WSGIPublisher import publish_module as application startup() If you need to wire in other configuration, etc., then you likely want to use a PasteDeploy config file. In that case, you need an "app factory", something like: # your_app.py from Zope2.startup import startup from ZPublisher.WSGIPublisher import publish_module def zope_app_factory(global_config, **local_config): startup() return publish_module and then configure that in Paste: [app:your_app] use = your_app:zope_app_factory If you get this working, let us know, and we will get something like it added to Zope or repoze.zope2. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAksvT2kACgkQ+gerLs4ltQ5L+ACgprTm8Fec+RjMsyfBOPh4+DWZ YqcAoIzal0eM+oZwgRa6avrvRN2g+VDm =j65l -----END PGP SIGNATURE----- _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev