Revision f1713999 pithos/backends/simple.py

b/pithos/backends/simple.py
668 668
        for x in ('read', 'write'):
669 669
            g_perms = []
670 670
            for y in perms.get(x, []):
671
                if ':' in y:
672
                    g_account, g_name = y.split(':', 1)
673
                    groups = self._get_groups(g_account)
674
                    if g_name in groups:
675
                        g_perms += groups[g_name]
676
                else:
671
                groups = self._get_groups(account)
672
                if y in groups: #it's a group
673
                    for g_name in groups[y]:
674
                        g_perms.append(g_name)
675
                else: #it's a user
677 676
                    g_perms.append(y)
678 677
            perms[x] = g_perms
679 678
        

Also available in: Unified diff