summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6615e67)
svn path=/trunk/packages/sipb-xen-www/; revision=409
# return True
# return False
# return True
# return False
-class MyException(Exception):
+class AfsProcessError(Exception):
pass
def getAfsGroupMembers(group, cell):
pass
def getAfsGroupMembers(group, cell):
p = subprocess.Popen(["fs", "whichcell", getLockerPath(locker)],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if p.wait():
p = subprocess.Popen(["fs", "whichcell", getLockerPath(locker)],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if p.wait():
- raise MyException(p.stderr.read())
+ raise AfsProcessError(p.stderr.read())
return p.stdout.read().split()[-1][1:-1]
def getLockerAcl(locker):
p = subprocess.Popen(["fs", "listacl", getLockerPath(locker)],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if p.wait():
return p.stdout.read().split()[-1][1:-1]
def getLockerAcl(locker):
p = subprocess.Popen(["fs", "listacl", getLockerPath(locker)],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if p.wait():
- raise MyException(p.stderr.read())
+ raise AfsProcessError(p.stderr.read())
lines = p.stdout.readlines()
values = []
for line in lines[1:]:
lines = p.stdout.readlines()
values = []
for line in lines[1:]:
try:
cell = getCell(locker)
values = getLockerAcl(locker)
try:
cell = getCell(locker)
values = getLockerAcl(locker)
+ except AfsProcessError, e:
return str(e)
for entry in values:
return str(e)
for entry in values: