1. for a descriptor you would want something like this:
      posted by Bob Ippolito at 06:20:35 PM on September 20, 2004  
  2. Ahh... I knew there was another way to do it. Thanks Bob.
      posted by Hans Nowak at 07:18:22 PM on September 20, 2004  
  3. Well, I do this kind of thing all the time at work in a custom python container that I helped write. Using metaclasses, I wrote a simple, but powerful aspect-oriented framework. Using this, I can simply tag a certain class, or certain methods of a class, to have their methods wrapped inside a transaction. I can also automatically do rollbacks "on exception" using aspects.

    Very powerful, and also quite easy.
      posted by Jonathan LaCour at 09:17:37 PM on September 20, 2004