Re: [Zope3-dev] New way of using skins
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: 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
Re: [Zope3-dev] New way of using skins
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. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] New way of using skins
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? Thanks, Florian ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] New way of using skins
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. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
[Zope3-dev] New way of using skins
Hello, I have: class ICentershockSkin(zope.app.rotterdam.Rotterdam): What do I have to give for the layer or type (what is the difference?) attributes of view / pages / ... directives? 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?? Thanks, florian ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com