[Pki-devel] [PATCH] 99 Fixes for trac tickets 1040 and 1041 (Related to refactoring python modules)

Abhishek Koneru akoneru at redhat.com
Thu Jun 26 04:27:42 UTC 2014


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pki-akoneru-0099-Fixes-for-1040-and-1041-in-cert-and-key-python-modul.patch
Type: text/x-patch
Size: 34151 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20140626/4e626f3c/attachment.bin>


More information about the Pki-devel mailing list