def __contains__(self, tag):
        """ Check whether a tag is present in any item of the subtree """

        components = self.components
        for i in components:
            if tag in i.tags or tag in i:
                return 1
        return 0

    # -------------------------------------------------------------------------
dataset/ETHPy150Open sahana/eden/modules/s3/s3navigation.py/S3NavigationItem.__contains__/original