Commit 0b8c726c authored by Lorenz Steinert's avatar Lorenz Steinert

made status reporting better

parent 4e7cdf58
......@@ -47,6 +47,7 @@ class FsrLdap:
fil = "(uid="+current_user()+")"
if conn.search('ou=people,' + self.base, fil,
attributes=['displayName']):
print("Done")
return " ".join(str(conn.entries[0]['displayName']).split(", ")[::-1])
return get_protokollant(config)
except ldap.core.exceptions.LDAPException as error_message:
......@@ -73,6 +74,7 @@ class FsrLdap:
fsr += [str(conn.entries[0]['displayName'])]
fsr.sort()
fsr = [" ".join(i.split(', ')[::-1]) for i in fsr]
print("Done")
return fsr
if not gen_fallback:
return get_fallback_fsr(share_dir)
......@@ -103,6 +105,7 @@ class FsrLdap:
fsr_extern += [str(conn.entries[0]['displayName'])]
fsr_extern.sort()
fsr_extern = [" ".join(i.split(', ')[::-1]) for i in fsr_extern]
print("Done")
return fsr_extern
if not gen_fallback:
return get_fallback_fsr_extern(share_dir)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment