[Zope3-dev] Decorators

Steve Alexander steve@cat-box.net
Mon, 19 May 2003 15:41:36 +0300


Hi folks,

Over the past few weeks, Marius and I have been working on adding 
Decorators to Zope 3.

The work has been taking place on the stevea-decorators-branch in CVS.

The main goal of the work is to allow you to keep context-dependent 
implementation separate from regular python implementation, at minimal 
inconvenience when your objects are adapted or are presented with views.

You can read the draft documentation here:

http://cvs.zope.org/*checkout*/Zope3/src/zope/proxy/context/Attic/decorators.txt?rev=1.1.2.8&only_with_tag=stevea-decorators-branch


This work implements something similar in form to what Shane discussed 
in December:

   http://mail.zope.org/pipermail/zope3-dev/2002-December/004606.html

My reply is here:

   http://mail.zope.org/pipermail/zope3-dev/2002-December/004607.html

   This is pretty much how the work has turned out, except that
   there is no support (yet) for declaratively creating simple
   decorators.

And Jim's brief reply to Shane's message is here:

   http://mail.zope.org/pipermail/zope3-dev/2002-December/004612.html


I'm looking for some sort of peer review of the intent and ideas (and 
perhaps the code, if you want to dig in ;-) ) before merging this onto 
the HEAD.

--
Steve Alexander