mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[doc] add documentation for private function
This commit is contained in:
parent
91e06611ba
commit
f9ef14e439
1 changed files with 7 additions and 2 deletions
|
@ -177,6 +177,13 @@ def alias_info(auth, alias):
|
|||
|
||||
|
||||
def _ensure_ldap_ou_is_created(auth):
|
||||
"""
|
||||
Make sure the 'ou=aliases' tree is created, for holding aliases entries.
|
||||
Raises an exception in case of error.
|
||||
|
||||
Keyword argument:
|
||||
auth -- the auth object from moulinette, managing the LDAP connection
|
||||
"""
|
||||
rdn = 'ou=aliases'
|
||||
attr_dict = {
|
||||
'objectClass' : ['organizationalUnit', 'top'],
|
||||
|
@ -184,5 +191,3 @@ def _ensure_ldap_ou_is_created(auth):
|
|||
if not auth.search('dc=yunohost,dc=org', rdn, attr_dict['objectClass']) :
|
||||
if auth.add(rdn, attr_dict):
|
||||
msignals.display(m18n.n('alias_init'), 'success')
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue