summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-09-05 14:35:44 +0200
committerPetr Vobornik <pvoborni@redhat.com>2012-09-06 10:27:10 +0200
commit07cae43484911ddf87b87d7d3399f7b09378f8fe (patch)
tree699208a7a584a7bc03b6a6fc2f7389a43d8243c7 /ipalib/plugins
parent6a8d6d3fde0ede2e0b976cd5af67a57c0691b1f8 (diff)
downloadfreeipa-07cae43484911ddf87b87d7d3399f7b09378f8fe.tar.gz
freeipa-07cae43484911ddf87b87d7d3399f7b09378f8fe.tar.xz
freeipa-07cae43484911ddf87b87d7d3399f7b09378f8fe.zip
Fixed metadata serialization of Numbers and DNs
There were following problems: 1. DNs and Decimals weren't properly serialized. Serialization output was object with empty __base64__ attribute. It was fixed by converting them to string. 2. numberical values equal to 0 were excluded from metadata. It broke many of minvalue checks in Web UI. Now excluding only None and False values as initally intended. https://fedorahosted.org/freeipa/ticket/3052
Diffstat (limited to 'ipalib/plugins')
-rw-r--r--ipalib/plugins/baseldap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py
index 3dcb2d39f..6a054ffd8 100644
--- a/ipalib/plugins/baseldap.py
+++ b/ipalib/plugins/baseldap.py
@@ -628,7 +628,7 @@ class LDAPObject(Object):
def __json__(self):
ldap = self.backend
json_dict = dict(
- (a, getattr(self, a)) for a in self.json_friendly_attributes
+ (a, json_serialize(getattr(self, a))) for a in self.json_friendly_attributes
)
if self.primary_key:
json_dict['primary_key'] = self.primary_key.name