Zope heads towards WSGI and Twisted integration

By fossurgeon

The latest zope 2.10.0-beta, includes experimental WSGI and Twisted integration. The Web Server Gateway Interface defines a simple and universal interface between web servers and web applications or frameworks for the Python Programming language. This will bring a universal interface for easier integration of web applications/frameworks and servers.

Twisted is an event-driven asynchronous networking framework written in Python and licensed under the Free Software MIT license. It supports TCP, UDP, multicast, SSL/TLS, serial communication and more.

 http://twistedmatrix.com/projects/core/

Zope now has a WSGI interface for integration with other web-servers than ZServer. Most notably Twisted is supported. The WSGI application is ZPublisher.WSGIPublisher.publish_module

You can make ZServer use the twisted interface with the "use-wsgi on" keyword in the http-server section in zope.conf.

You can run Twisted by installing Twisted (2.1 recommended) and replacing the http-server section with a server section in zope.conf.

It is not possible to run a Twisted server together with a ZServer at the same time.

WSGI: http://www.python.org/dev/peps/pep-0333/

Twisted: http://twistedmatrix.com/

 There are also several changes towards Zope3 withseveral Zope 2 modules replaced with their sister implementation of Zope 3, and the ZPT (Zope Page Templates) is also based on Zope3.

Zope Page Templates (ZPT) are an HTML/XML generation tool.

The ZPT standards include: Tag Attribute Language (TAL), TAL Expression Syntax (TALES), and Macro Expansion TAL (METAL).

Leave a Reply

You must be logged in to post a comment.