示例#1
0
文件: Skinnable.py 项目: goschtl/zope
 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
示例#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
示例#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
示例#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
示例#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