parameters: (self, id, object)
docstring: Update portal_skins cache with the new files.
  
      Checks must be done from the quickest to the slowest to avoid wasting
      time when no cache must be updated.
  
      Update must only be triggered if we (folder) are right below the skin
      tool, not any deeper.
docstring_summary: Update portal_skins cache with the new files.
docstring_tokens: Update portal_skins cache with the new files .
function: def Folder_setOb(self, id, object):
    """
      Update portal_skins cache with the new files.
  
      Checks must be done from the quickest to the slowest to avoid wasting
      time when no cache must be updated.
  
      Update must only be triggered if we (folder) are right below the skin
      tool, not any deeper.
    """
    Folder_original__setOb(self, id, object)
    aq_chain = getattr(self, 'aq_chain', None)
    if aq_chain is None: # Not in acquisition context
      return
    if len(aq_chain) < 2: # Acquisition context is not deep enough for context to possibly be below portal skins.
      return
    portal_skins = aq_chain[1]
    if getattr(portal_skins, 'meta_type', '') != 'CMF Skins Tool' : # It is not a skin tool we're below.
      return
    _updateCacheEntry = getattr(portal_skins.aq_base, '_updateCacheEntry', None)
    if _updateCacheEntry is None:
      return
    _updateCacheEntry(self.id, id)
function_tokens: def Folder_setOb ( self , id , object ) : Folder_original__setOb ( self , id , object ) aq_chain = getattr ( self , 'aq_chain' , None ) if aq_chain is None : # Not in acquisition context return if len ( aq_chain ) < 2 : # Acquisition context is not deep enough for context to possibly be below portal skins. return portal_skins = aq_chain [ 1 ] if getattr ( portal_skins , 'meta_type' , '' ) != 'CMF Skins Tool' : # It is not a skin tool we're below. return _updateCacheEntry = getattr ( portal_skins . aq_base , '_updateCacheEntry' , None ) if _updateCacheEntry is None : return _updateCacheEntry ( self . id , id )