def __of__(self, parent): ''' Sneakily sets up the portal skin then returns the wrapper that Acquisition.Implicit.__of__() would return. ''' w_self = ImplicitAcquisitionWrapper(aq_base(self), parent) w_self.setupCurrentSkin() return w_self
def __of__(self, parent): ''' Sneakily sets up the portal skin then returns the wrapper that Acquisition.Implicit.__of__() would return. ''' w_self = ImplicitAcquisitionWrapper(self, parent) try: w_self.setupCurrentSkin() except ConflictError: raise except: # This shouldn't happen, even if the requested skin # does not exist. logger.exception("Unable to setupCurrentSkin()") return w_self
def __of__(self, parent): ''' Sneakily sets up the portal skin then returns the wrapper that Acquisition.Implicit.__of__() would return. ''' w_self = ImplicitAcquisitionWrapper(self, parent) try: w_self.setupCurrentSkin() except: # This shouldn't happen, even if the requested skin # does not exist. import sys from zLOG import LOG, ERROR LOG('CMFCore', ERROR, 'Unable to setupCurrentSkin()', error=sys.exc_info()) return w_self