16 Apr
2003
16 Apr
'03
6:39 p.m.
What is the base way to determine if a object is wrapped by an acquisition wrapper? I currently use hasattr(seld, 'aq_base'), I would like to use something like: from Acquisition import isWrapped, Implicit class Foo(Implicit,...): def bar(self, ...): if isWrapped(self): return "We don't serve wrapped object, sorry!" -- Easy Publisher Developers Team Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Phone +46-(0)8-31 24 94 Fax +46-(0)8-673 04 44 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com