From fb5bf6857dce597ce7b94a8e1ea49cc5e3539b8c Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 25 Sep 2014 10:36:40 +0200 Subject: debug changes --- ipapython/dn.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ipapython') 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__()) -- cgit