homes: plus de généricité & /home-adh/x/xlogin

This commit is contained in:
Daniel STAN 2014-08-24 17:56:19 +02:00
parent de45237b50
commit 20a6ee6afb
6 changed files with 15 additions and 14 deletions

View file

@ -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: