On Apr 1, 2009, at 10:02 AM, Martin Aspeli wrote: > Hi, > > I'd like to add support for the following: > > 1) Provider decorator: > > @provider(IFoo) > def some_function(context) > pass > > > This is an alternative to doing a separate alsoProvides() on the > function. > > 2) An interfaceProvides directive: > > > class IFoo(Interface): > interfaceProvides(ISomeMarker) > > This is alternative to doing alsoProvides() on the interface. > > The reason for this is that currently, you have to put those > alsoProvides() lines after the function or interface. This makes them > difficult to find if the bodies of the functions or interfaces are > long, > and goes against the convention of having the "what is this" > information > at the top of the entity. > > I can probably help implement this. Any thoughts?
+1 -- Jim Fulton Zope Corporation _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )