Re: [Zope3-Users] Re: Confused about skinning in Zope3

2006-09-17 Thread Albertas Agejevas
On Sun, Sep 17, 2006 at 10:43:39PM +0200, Luis De la Parra wrote: > Philippe Clérié wrote: > > a) skins are applied globally and not locally to the packages that own > > them; > > > > b) skins are not *picked up* unless directly referenced in the URL. > > > > Somehow that does not feel *natural*.

[Zope3-Users] Re: Confused about skinning in Zope3

2006-09-17 Thread Luis De la Parra
hello, I'm not sure wether this is the right way to do it, but you can set up the skin with a traverse-subscriber: def myAppTraverseSubscriber(event): """A subscriber to BeforeTraverseEvent. Sets the "AC" skin if the object traversed is a "MyApp" instance. """ if (IMyApp.pr