On Tue, Jul 10, 2007 at 12:48:42PM +0200, Christian Theune wrote:
> Please see
> https://blueprints.edge.launchpad.net/zope3/+spec/reusable-configuration-actions
> 
> Discussion on this thread :)

I like it.  +1

The semantics of the new 'order' attribue are a bit unclear.

What's the migration plan for old-style actions?  Will
IConfigurationContext.action() use something like

  class OldStyleConfigurationAction(object):

      implements(IConfigurationAction)

      def __init__(self, discriminator, callable, args, order=0):
          self.discriminator = discriminator
          self.order = order
          self.callable = callable
          self.args = args

      def __call__(self):
          self.callable(*self.args)

in addition to emitting a deprecation warning, perhaps?

Marius Gedminas
-- 
If you sat a monkey down in front of a keyboard, the first thing typed would be
a unix command.
                -- Bill Lye

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to