Re: [Zope-dev] Put an adapted object in context

2004-02-13 Thread Martijn Faassen
Santi Camps wrote: Thats very interesting !! I was rewriting __getattr__ to allow the adapter access adapted object attributes, but doing this way its clear and easier. Inheriting from Acquisition Implicit and applying the adapter using __of__ I obtain the same result and have less problems.

Re: [Zope-dev] Put an adapted object in context

2004-02-13 Thread Santi Camps
Okay, though Acquisition.Implicit is actually going to make your namespace issues worse; better use Acquisition.Explicit and enjoy another benefit of adapters -- namespace separation. I suspect though that your application's goals/design are different than mine. I appreciate adapters in part

Re: [Zope-dev] Put an adapted object in context

2004-02-12 Thread Martijn Faassen
Santi Camps wrote: My problem is that the adapter object, and also the adapted object contained in it, are out of publisher context or something like this. For instance, absolute_url() methods doesn't work becouse REQUEST is not defined. I'm not sure I understand what you mean; I don't

Re: [Zope-dev] Put an adapted object in context

2004-02-12 Thread Santi Camps
Santi Camps wrote: My problem is that the adapter object, and also the adapted object contained in it, are out of publisher context or something like this. For instance, absolute_url() methods doesn't work becouse REQUEST is not defined. I'm not sure I understand what you mean; I

[Zope-dev] Put an adapted object in context

2004-02-11 Thread Santi Camps
Hi all, Following your instructions and seeing Skin Product code, I've been able to write a simple way to register Apdaters in my applications that are applied to specific meta_type objects during publishing. This is now working fine. I can write an Adapter in my application and say use this