Am Freitag, 10. März 2006 13:50 schrieb Stephan Richter:
> On Friday 10 March 2006 07:22, Florian Lindner wrote:
> > Am Freitag, 10. März 2006 12:45 schrieb Stephan Richter:
> > > On Friday 10 March 2006 05:55, Florian Lindner wrote:
> > > > layer = centershock does not seem to work anymore (for what is name
> > > > attribute of the interface directive?).
> > > >
> > > > layer="CS.skin.interfaces.ICentershockLayer" seems to work but do I
> > > > always have to give the lenghty python path??
> > >
> > > Yes, this is one use case Phillip removed.
> >
> > And what meaning has the name attribute of the interface directive?
>
> Well it is the name of the interface utility.
>
> Have you tried registering your layer using the interface directive with a
> name and then use that in the layer attribute?
>
> I think ovarall, Phillip should support those named layers.

Yes, I have my interface registered with:

    <zope:interface
        interface=".interfaces.ICentershockSkin"
        type="zope.publisher.interfaces.browser.IBrowserSkinType"
        name="centershock"
    />

class ICentershockSkin(zope.app.rotterdam.Rotterdam):


I've tried to use the name centershock in either a layer or a type attribute, 
but nothing worked. Only giving the the python path with the layer attribute 
worked. The type attribute does not even seem to exist, although I understood 
Philipps proposal that it should replace the layer.
(tested with a resource directive)

Regards,

Florian
_______________________________________________
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