[Zope] Set "uncontained" attributes on a Implicitly wrapped object.

Johan Carlsson johanc@easypublisher.com
Thu, 17 Jul 2003 20:10:55 +0200


Etienne Labuschagne wrote:
> Not quite sure what the end result is you want, or that I understand you 
> question - do you want it wrapped or not?

I want to preserve the original wrapping, which will be destroyed if
I save the wrapping to an attribute.
But if I first put the reference in a tuple (which doesn't support 
Acquisition) the original context is preserve.

I guess I'm looking for a AntiWrapper looking like this:

class AntiWrapper:   #Don't inherit Acquisition.Implicit
	def __init__(self, wrapped_obj):
		self.wrapped_obj=wrapped_obj
	def getObjectWrapper(self):
		return self.wrapped_obj
	

But never mind. I'm just looking for some ZopeZen that ¨
I don't really need.
Using a tuple works, it's a hack but it works.

Cheers,
Johan




-- 
Johan Carlsson          Tel: + 46 8 31 24 94
Colliberty              Mob: + 46 70 558 25 24
Torsgatan 72            Email: johanc@easypublisher.com
SE-113 37 STOCKHOLM