Basic understanding of ZCA

Component  based design, and programming using components are  very popular these days. Such an approach helps to write and maintain software systems easily.  There are many frameworks  for supporting component based design in different languages.

 Framework may refer to:

Software framework, a reusable set of libraries or classes for a software system (or subsystem).
Application framework, a software framework used to implement the standard structure of an application for a specific operating system.
Web application framework, a software framework for development of dynamic websites, web applications

Zope Component Architecture (ZCA) is a Python framework for supporting component based design and programming.  It is very well suited to develop large Python software systems. The ZCA is not specific to the Zope web application server: it can be used for developing any Python application.  The ZCA is all about using Python objects effectively.

Components are reusable objects with introspective interfaces.  An interface is an object that describes how you work with a particular component.  ZCA helps you to create two basic kinds of components: adapter and utility
An adapter is a normal Python class (or a factory in general) and utility is a normal Python callable object.

There are three core packages related to the ZCA:

zope.interface is used to define the interface of a component.
zope.event provides a simple event system.
 zope.component deals with creation, registration and retrieval of components.

Refer:  http://www.muthukadan.net/docs/zca.html#getting-started

Advertisements

Tagged: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s