From: Michael Tremer Date: Tue, 7 May 2019 15:52:51 +0000 (+0100) Subject: accounts: Rename _get_account_from_dn to get_by_dn X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2cdf68d8aadd7ee9922d84f88efef1bd436d6762;p=ipfire.org.git accounts: Rename _get_account_from_dn to get_by_dn Signed-off-by: Michael Tremer --- diff --git a/src/backend/accounts.py b/src/backend/accounts.py index 657d765b..65afdef3 100644 --- a/src/backend/accounts.py +++ b/src/backend/accounts.py @@ -85,9 +85,9 @@ class Accounts(Object): def _get_accounts_from_dns(self, dns): for dn in dns: - yield self._get_account_from_dn(dn) + yield self.get_by_dn(dn) - def _get_account_from_dn(self, dn): + def get_by_dn(self, dn): attrs = self.memcache.get("accounts:%s:attrs" % dn) if attrs is None: attrs = self._get_attrs(dn) @@ -225,7 +225,7 @@ class Accounts(Object): self.ldap.add_s(dn, ldap.modlist.addModlist(account)) # Return account - return self._get_account_from_dn(dn) + return self.get_by_dn(dn) # Session stuff