From b70ec401d53625e93fb55b1a130701e295341c48 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Thu, 21 Mar 2013 16:01:19 -0400 Subject: Fixed JSON encoding class registration. The class registration for JSON encoding has been moved after the class definitions to avoid problems. Ticket #532 --- base/common/python/pki/system.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'base/common/python') diff --git a/base/common/python/pki/system.py b/base/common/python/pki/system.py index 23ad06bb2..3c54e0015 100644 --- a/base/common/python/pki/system.py +++ b/base/common/python/pki/system.py @@ -21,10 +21,6 @@ import pki.encoder as encoder -encoder.TYPES['ConfigurationRequest'] = ConfigurationRequest -encoder.TYPES['ConfigurationResponse'] = ConfigurationResponse -encoder.NOTYPES['SystemCertData'] = SystemCertData - class SecurityDomainInfo: def __init__(self): @@ -86,4 +82,6 @@ class SystemStatusClient: return r.text - +encoder.TYPES['ConfigurationRequest'] = ConfigurationRequest +encoder.TYPES['ConfigurationResponse'] = ConfigurationResponse +encoder.NOTYPES['SystemCertData'] = SystemCertData -- cgit