Exemplo n.º 1
0
 def getAquiredKeywords(self):
     """ Builds a blacklist aquiring from parents"""
     parent = self
     kwa = []
     while parent and IProxyFolder.providedBy(parent):
         kwa = kwa + list(parent.getField('keywordsToAssign').get(parent))
         parent = parent.aq_parent
     return list(set(kwa))
Exemplo n.º 2
0
 def getAquiredBlacklist(self):
     """ Builds a blacklist aquiring from parents"""
     parent = self
     bl = []
     if self.getField('aquireBlacklist').get(self):
         while parent and IProxyFolder.providedBy(parent):
             bl = bl + list(parent.getField('blacklist').get(parent))
             parent = parent.aq_parent
     else:
         bl = list(parent.getField('blacklist').get(parent))
     return bl