Please review the attached patch with fixes for tickets 1040 and 1041.
Changes made:
-- Added dictionaries with mapping for python attribute names and
JSON attribute names received from the server.
-- Made changes to from_json methods in data classes to take care of
missing attributes in the JSON string. (#1040 - caused due to missing
attribute in the JSON value of the CertData object when tested by Endi).
-- Renamed kraclient module to kra. (#1041). updated import in
drmtest.py.
-- Removed the usage of properties in the some classes. The reverse
conversion of atribute names from _separated names to camelCase is done
using the name mapping dictionaries in the classes and a static method
added in CustomEncoder in the encoder module.
-- Fixed some issues in drmtest.py.
-- Updated the license string in the files.
Note: The following changes are limited to cert and key modules. Similar
changes will be made to profile module once it is completely checked in.
Tested the code by running cert and drmtest modules.
-- Abhishek