def fi_ns_desc(self):
        s = [u'']
        writes = (u'create', u'metadata', u'delete')
        desc = RAW_PERMS[u'namespace']
        s.append(u'NAMESPACE (/%s)' % desc.path)
        s.append(u'  Read')
        s.append(u'    %-18s  %s' % (u'list (read):', unicode(self.read)))
                                     
        s.append(u'  Write')
        wPerms = []
        for (fi, fdb) in zip(desc.actions, desc.names):
            if fdb in writes:
                w = unicode(self.__dict__[fdb])
                wPerms.append(w)
                s.append(u'    %-18s  %s' % (u'%s (%s):' % (fi, fdb), w))
        s.append(u'  Control')
        s.append(u'    %-18s  %s' % (u'control (control):', self.control))
        if self.compressIfPoss and all(w == wPerms[0] for w in wPerms[1:]):
            s = [u'     read: %s' % unicode(self.read),
                 u'    write: %s' % unicode(wPerms[0]),
                 u'  control: %s' % unicode(self.control)]
        s.append(u'')
        return u'\n'.join(s)
dataset/ETHPy150Open njr0/fish/fish/ls.py/FluidinfoPerms.fi_ns_desc/original