[gen] Bugfixes in mail and ldap configs.

This commit is contained in:
Gaetan Delannay 2015-01-27 15:45:15 +01:00
parent bfb10675de
commit 9566a7d788
3 changed files with 8 additions and 3 deletions

View file

@ -18,7 +18,7 @@ class LdapConfig:
def __init__(self):
self.server = '' # Name of the LDAP server
self.port = None # Port for this server.
self.port = None # Port for this server
# Login and password of the technical power user that the Appy
# application will use to connect to the LDAP.
self.adminLogin = ''
@ -49,6 +49,11 @@ class LdapConfig:
# "roles": a list of global role names.
self.userMap = {}
def __repr__(self):
'''Short string representation of this ldap config, for logging and
debugging purposes.'''
return self.getServerUri()
def getServerUri(self):
'''Returns the complete URI for accessing the LDAP, ie
"ldap://some.ldap.server:389".'''