Hi Garanin, No, not quite. Your 'site' I presume has it's own skin. The browser:viewlet zcml directive is a way to plug a 'viewlet' from a package into your skin (using the layer attribute). You are not *overwriting* my viewlet, simply defining where it should appear to the user in their browser. Hence a standard presentationSlots for packages is unnecessarily prescriptive.
By defintion zcml directives are how in Zope3 the developer can define or redefine aspects of a package; views, permissions etc. Viewlets are an honest implementation of this philosophy. With regard, Darryl On Sun, 2006-02-19 at 11:02 +0300, Garanin Michael wrote: > For example i want insert yours "tfws_i18ninfo" into 'IRight'-slot of my > site ==> i must overwrite yours 'viewlet'-definitions. I think it's not > right. > > В Вск, 19/02/2006 в 19:46 +1300, Darryl Cousins пишет: > > Hi Garanin, > > > > I don't believe such an agreement exists. I am getting used to using > > viewlets (zope.viewlet and implemented in zope.app.boston for example) > > and this provides easy insertion of "presentationSlots" as you describe. > > > > For example in a tfws.layers.tfws.viewlets.i18info configure.zcml: > > > > <viewlet > > name="tfws_i18ninfo" > > for="*" > > manager="zope.app.boston.ILeft" > > permission="zope.Public" > > class=".browser.I18nInfoViewlet" > > template="viewlet.pt" > > layer="tfws" > > weight="3" > > /> > > > > Hope this helps. > > > > Regards, > > Darryl > > > > > > On Sat, 2006-02-18 at 19:05 +0300, Garanin Michael wrote: > > > Where are exists 'agreement about standart views'? > > > I think it's need for development components for site. > > > Example of my problem: > > > I have two 3th-party components 'Forum' and 'News'. And i want easy > > > insert 'Last Forums Items'-box and 'Last News'-box into left column of > > > my site pages. I think authors of Forum and News must develop > > > '@@presentationSlotBox'-view according 'agreement about standart views' > > > for easy insert into site : > > > 1) @@presentationSlotBox from 'Forum' present 'Last Forums items'-box. > > > 2) @@presentationSlotBox from 'News' present 'Last News'-box. > > > > > > > > > > > > > > > _______________________________________________ > > > Zope3-users mailing list > > > [email protected] > > > http://mail.zope.org/mailman/listinfo/zope3-users > > _______________________________________________ > Zope3-users mailing list > [email protected] > http://mail.zope.org/mailman/listinfo/zope3-users -- Darryl Cousins Tree Fern Web Services (NZ) Ltd 106 Sandes St Thames 2801 New Zealand +64 7 868 3139 [EMAIL PROTECTED] http://www.treefernwebservices.co.nz/ _______________________________________________ Zope3-users mailing list [email protected] http://mail.zope.org/mailman/listinfo/zope3-users
