2 from _acl import READ, WRITE, INSERT, LOOKUP, DELETE, LOCK, ADMINISTER, \
3 USR0, USR1, USR2, USR3, USR4, USR5, USR6, USR7
4 from _acl import getCallerAccess
31 _bit2char = dict([(v,k) for k,v in _char2bit.items()])
34 """Canonicalizes string rights to bitmask"""
35 if s in _canonical: s = _canonical[s]
36 return _parseRights(s)
39 def __init__(self, pos, neg):
42 Dictionary of usernames to positive ACL bitmasks
44 Dictionary of usernames to negative ACL bitmasks
50 """Retrieve the ACL for an AFS directory"""
51 pos, neg = _parseAcl(_acl.getAcl(dir))
55 """Parses a rwlid... rights tring to bitmask"""
65 lines = inp.split("\n")
66 npos = int(lines[0].split(" ")[0])