Ignore:
Timestamp:
Oct 21, 2007, 1:35:13 AM (17 years ago)
Author:
ecprice
Message:

Split main.py in four.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/templates/getafsgroups.py

    r177 r209  
    4040def checkLockerOwner(user, locker, verbose=False):
    4141    """
    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.
    4346    """
    4447    p = subprocess.Popen(["fs", "whichcell", "/mit/" + locker],
     
    6265            if entry[0] == user or (entry[0][0:6] == "system" and
    6366                                    checkAfsGroup(user, entry[0], cell)):
     67                if verbose:
     68                    return None
    6469                return True
    6570    if verbose:
Note: See TracChangeset for help on using the changeset viewer.