[Grok-dev] Naming of grok.provides

Christian Theune ct at gocept.com
Sat Oct 18 10:45:45 EDT 2008


On Tue, 2008-10-14 at 10:02 +0200, Philipp von Weitershausen wrote:
> Or grok.register_for(). Consider this example::
> 
>    class FooBar(grok.GlobalUtility):
>        grok.implements(IBar, IFoo)
>        grok.register_for(IFoo)
> 

register_for doesn't fit the pattern of the current terminology. The
current names are all declarative,  whereas `register_for` sounds
imperative. 

I tried a couple of variations but didn't end up being happy with
anything. :/

-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20081018/dec2f1f2/attachment.bin 


More information about the Grok-dev mailing list