diff options
| author | Endi Sukma Dewata <edewata@redhat.com> | 2013-03-21 16:01:19 -0400 |
|---|---|---|
| committer | Endi Sukma Dewata <edewata@redhat.com> | 2013-03-21 16:20:25 -0400 |
| commit | b70ec401d53625e93fb55b1a130701e295341c48 (patch) | |
| tree | 8eef75c21c089921c9a624a657c2b4cbb134ef35 /base/common/python | |
| parent | 7020d42908ec515a4d77312c5d91dec201b05645 (diff) | |
| download | pki-b70ec401d53625e93fb55b1a130701e295341c48.tar.gz pki-b70ec401d53625e93fb55b1a130701e295341c48.tar.xz pki-b70ec401d53625e93fb55b1a130701e295341c48.zip | |
Fixed JSON encoding class registration.
The class registration for JSON encoding has been moved after the
class definitions to avoid problems.
Ticket #532
Diffstat (limited to 'base/common/python')
| -rw-r--r-- | base/common/python/pki/system.py | 8 |
1 files changed, 3 insertions, 5 deletions
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 |
