homes: plus de généricité & /home-adh/x/xlogin
This commit is contained in:
parent
de45237b50
commit
20a6ee6afb
6 changed files with 15 additions and 14 deletions
|
@ -488,7 +488,7 @@ def adher_details(adher) :
|
|||
if len(adher.gpgFingerprint()) > 0:
|
||||
f += u"\n".join([coul(u'Fingerprint GPG : ', 'gras') + u"%s" % (i) for i in adher.gpgFingerprint()])+"\n"
|
||||
try:
|
||||
forward = file("/home/%s/.forward" % adher.compte()).readlines()
|
||||
forward = file(os.path.join(adher.home(), ".forward")).readlines()
|
||||
if len(forward) > 1:
|
||||
forward = forward[0].strip() + u" ...\n"
|
||||
elif len(forward) == 1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue