From 03e6aafb83a9b187e908610fe0cf468063d9dd58 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 28 Jun 2023 10:45:28 +0000 Subject: [PATCH] accounts: Fix comparison functions Signed-off-by: Michael Tremer --- src/backend/accounts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/accounts.py b/src/backend/accounts.py index a8269764..9834c219 100644 --- a/src/backend/accounts.py +++ b/src/backend/accounts.py @@ -43,6 +43,8 @@ class LDAPObject(Object): if isinstance(other, self.__class__): return self.dn == other.dn + return NotImplemented + @property def ldap(self): return self.accounts.ldap @@ -1401,6 +1403,8 @@ class Group(LDAPObject): if isinstance(other, self.__class__): return (self.description or self.gid) < (other.description or other.gid) + return NotImplemented + def __bool__(self): return True -- 2.47.3