[Zope3-dev] icons for factories

Roger Ineichen dev at projekt01.ch
Wed Mar 23 10:08:07 EST 2005


Hi Jean-Marc 

> -----Original Message-----
> From: Jean-Marc Orliaguet [mailto:jmo at ita.chalmers.se] 
> Sent: Wednesday, March 23, 2005 3:48 PM
> To: dev at projekt01.ch
> Cc: zope3-dev at zope.org
> Subject: Re: [Zope3-dev] icons for factories
> 
> Roger Ineichen wrote:
> 
> >Hi Jean-Marc
> >
> >  
> >
> >>-----Original Message-----
> >>From: zope3-dev-bounces+dev=projekt01.ch at zope.org 
> >>[mailto:zope3-dev-bounces+dev=projekt01.ch at zope.org] On 
> >>Behalf Of Jean-Marc Orliaguet
> >>Sent: Wednesday, March 23, 2005 3:33 PM
> >>To: zope3-dev at zope.org
> >>Subject: [Zope3-dev] icons for factories
> >>
> >>
> >>Hi!
> >>
> >>I'd like to display the factory icons next to factory names 
> in forms 
> >>meant for adding content.
> >>
> >>It is easy to display icons for existing items, but when it 
> comes to 
> >>factory icons I don't see how to do it? No zope3 application 
> >>that I've 
> >>seen so far does it either.
> >>    
> >>
> >
> >Take a look at:
> >- zope.app.container.browser.contents.py
> >- zope.app.container.browser.contents.pt 
> >
> >btw;
> >You see the icons in the tree and in the Contents view.
> >
> >Regards
> >Roger Ineichen
> >
> >  
> >
> 
> 
> Hi Roger!
> 
> I mean factory icons, i.e. the icons of objects before they 
> get created 
> (the items in the "add" panel). The tree view contains icons 
> of objects 
> already created, so it's easy to get the icon view for them.

Ok, this was wrong.

In the zope.app.publisher.browser.menu.py
you can see the BrowserMenuItem which is used in

zope.app.container.browser.adding.Adding's method "addingInfo"

You get for each "Add" entry such a instance. There is the icon
as a attribute stored.

There is a demo in zope.app.demo.menu where Stephan was adding
for our new skin.

I hope that helps.

Regards
Roger Ineichen

> /JM
> 



More information about the Zope3-dev mailing list