Changeset 209 for trunk/web/templates/getafsgroups.py
- Timestamp:
- Oct 21, 2007, 1:35:13 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/templates/getafsgroups.py
r177 r209 40 40 def checkLockerOwner(user, locker, verbose=False): 41 41 """ 42 checkLockerOwner(user, locker) returns True if and only if user administers locker 42 checkLockerOwner(user, locker) returns True if and only if user administers locker. 43 44 If verbose is true, instead return the reason for failure, or None 45 if there is no failure. 43 46 """ 44 47 p = subprocess.Popen(["fs", "whichcell", "/mit/" + locker], … … 62 65 if entry[0] == user or (entry[0][0:6] == "system" and 63 66 checkAfsGroup(user, entry[0], cell)): 67 if verbose: 68 return None 64 69 return True 65 70 if verbose:
Note: See TracChangeset
for help on using the changeset viewer.