Benji York wrote:
Gary Poster wrote:
What if we still deprecated browser:layer but kept a redefined version of browser:skin? Then your zcml--


      <interface
          interface=".interfaces.ShanghaiSkin"
          type="zope.publisher.interfaces.browser.IBrowserSkinType"
          />

      <utility
          component=".interfaces.ShanghaiSkin"
          provides="zope.publisher.interfaces.browser.IBrowserSkinType"
          name="ShanghaiSkin"
          />

could become

     <browser:skin component=".interfaces.ShanghaiSkin" name="ShanghaiSkin" />

Even though it's longer, I still like the interface/utility version. I think it really helps the developer understand what's going on and that it's not magic. The decreased brevity is of secondary concern to me.

Helping the developer understand what's happening is laudable, but that's ultimately the job of documentation. When line count reduction is as drastic as the above, I really don't have a problem with having shortcut ZCML directives.

Florent

--
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
_______________________________________________
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