diff options
Diffstat (limited to 'ipapython/dn.py')
-rw-r--r-- | ipapython/dn.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipapython/dn.py b/ipapython/dn.py index 834291fbe..2d01ab708 100644 --- a/ipapython/dn.py +++ b/ipapython/dn.py @@ -1273,6 +1273,12 @@ class DN(object): def __str__(self): return dn2str(self._to_openldap()) + def __json__(self): + return unicode(self.__str__()) + + def to_JSON(self): + return self.__json__() + def __repr__(self): return "%s.%s('%s')" % (self.__module__, self.__class__.__name__, self.__str__()) |