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.
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
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
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
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