Thanks for both replies. I haven't gotten that far yet to understand and
apply the solution. But it's duly noted and I'll use it ASAP.
All the best
Philippe
Albertas Agejevas wrote:
> On Sun, Sep 17, 2006 at 10:43:39PM +0200, Luis De la Parra wrote:
>> Philippe Clérié wrote:
>> > a) skins are
On Sunday 17 September 2006 17:26, George Lee wrote:
> If view V adapts interface I1 to interface I2, how do I allow a local site
> inside my Zope instance to use view W to adapt I1 to I2 instead?
>
> Register a local view? Use overrides.zcml? I cannot find documentation on
> these options, just sc
George Lee wrote:
If an object X implements both interfaces I1 and I2, how does an adapter Y which
can either map from I1->I3 or I2->I3 determine Y(X)?
You got several things wrong here:
* things are adapted by calling an interface, e.g. I3(X), not Y(X)
* not the adapter determines the return
If view V adapts interface I1 to interface I2, how do I allow a local site
inside my Zope instance to use view W to adapt I1 to I2 instead?
Register a local view? Use overrides.zcml? I cannot find documentation on these
options, just scattered references to them.
Peace,
George
__
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*.
If an object X implements both interfaces I1 and I2, how does an adapter Y which
can either map from I1->I3 or I2->I3 determine Y(X)?
Peace,
George
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
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
Hello list,
As the title says I am somewhat confused by the skinning system in Zope3. I
am following the example in "Web Component" (great book by the way) and at
the time creating another app along the same lines. Now I set up both skins
for each package and I _expected_ that each would pick up i