Re: [Zope3-Users] standart views ('slot-box views')

2006-02-19 Thread Garanin Michael
Sorry, i think i mistake in my question. 
I only want offer rule for develop components: if you develop component
for use in web-sites, then develop few 'slot-box views' for easy insert
into sites. 'slot-box views' it's little box with standart zope3-css
(div.box etc.)

Example:
1) I develop 'NewsManager' component. And for easy usage in sites i
develop one 'slot-box views': @@lastNewsBox show 'Last 10 News '

2) I develop 'Z3Forum' component. And for easy usage in sites i develop
two 'slot-box views': @@lastItemsBox and @@myPrivateItems

Now, if SiteDeveloper want use my component 'NewsManager' then he easy
insert @@lastNewBox into site main page (as 'tal:content' or 'viewlet').






  

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] standart views

2006-02-19 Thread Darryl Cousins
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:
> > 
> >>   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
> > > Zope3-users@zope.org
> > > http://mail.zope.org/mailman/listinfo/zope3-users
> 
> ___
> Zope3-users mailing list
> Zope3-users@zope.org
> 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
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] standart views

2006-02-19 Thread Garanin Michael
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:
> 
>  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
> > Zope3-users@zope.org
> > http://mail.zope.org/mailman/listinfo/zope3-users

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] standart views

2006-02-18 Thread 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:

  

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
> Zope3-users@zope.org
> 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
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] standart views

2006-02-18 Thread Garanin Michael
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
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users