Example #1
0
 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
Example #2
0
 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
Example #3
0
 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
Example #4
0
 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
Example #5
0
 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