Esempio n. 1
0
    def has_key(self, id):
        """Indicates whether the folder has an item by ID.
        """

        if CMFOrderedBTreeFolderBase.has_key(self, id):
            return True
        return id in getSite() and id not in _languagelist and id not in _combinedlanguagelist
Esempio n. 2
0
 def has_key(self, item_id):
     """Indicates whether the folder has an item by ID.
     """
     return (
         CMFOrderedBTreeFolderBase.has_key(self, item_id)  # noqa
         or (
             item_id in getSite()
             and item_id not in BLACK_LIST_IDS
         )
     )