def perms_string(self, tagOrNS, longer=False, group=False, longest=False):
        tagOrNS = tagOrNS.strip()
        if tagOrNS.endswith(u'/'):
            if longer or longest:
                p = FluidinfoPerms(self, u'/' + tagOrNS[:-1], isTag=False)
                p.compressIfPoss = not longest
                return unicode(p)
            else:
                return self.ns_perms_string(tagOrNS[:-1], group)
        else:
            if longer or longest:
                p = FluidinfoPerms(self, u'/' + tagOrNS, isTag=True)
                p.compressIfPoss = not longest
                return unicode(p)
            else:
                try:
                    return self.tag_perms_string(tagOrNS, group)
                except __HOLE__:
                    raise PermissionsError(u'Forbidden (you don\'t appear to'
                        u' have control permission for %s)' % tagOrNS)
dataset/ETHPy150Open njr0/fish/fish/ls.py/ExtendedFluidinfo.perms_string