def __init__(self, db, path, isTag, getFromFI=True, isPolicy=False):
        self.isTag = isTag
        self.isPolicy = isPolicy
        self.path = path
        self.valid = True
        self.entities = [u'abstract-tag', u'tag'] if isTag else [u'namespace']
        self.compressIfPoss = True              # used by ls -L / -G

        self.owner = path.split(u'/')[1]
        for entity in self.entities:
            desc = RAW_PERMS[entity]
            for (action, name) in zip(desc.actions, desc.names):
                if getFromFI:
                    if isPolicy:
                        p = db.get_raw_policy(entity, path[1:], action)
                        
                    else:
                        p = db.get_raw_perm(entity, path[1:], action, isTag)
                    self.__dict__[name] = p
                    if (int, long) in type(p):
                        self.value = False
                else:
                    # figure out defaults etc.
                    policy = u'open' if name in READ_NAMES else u'closed'
                    exceptions = [] if name in READ_NAMES else [self.owner]
                    self.__dict__[name] = FluidinfoPerm(self.owner, policy,
                                                        exceptions, None,
                                                        name, action, isTag,
                                                        isPolicy)
dataset/ETHPy150Open njr0/fish/fish/ls.py/FluidinfoPerms.__init__/swapped operands of `in`