laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/36960?usp=email ) Change subject: esim.saip: Implement ProfileElement.header_name for more PE types ...................................................................... esim.saip: Implement ProfileElement.header_name for more PE types We now cover all PE types as of PE_Definitions-3.3.1.asn Change-Id: I37951a0441fe53fce7a329066aebd973389cb743 --- M pySim/esim/saip/__init__.py 1 file changed, 30 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/60/36960/1 diff --git a/pySim/esim/saip/__init__.py b/pySim/esim/saip/__init__.py index ae733e1..f066ba4 100644 --- a/pySim/esim/saip/__init__.py +++ b/pySim/esim/saip/__init__.py @@ -173,6 +173,25 @@ # unneccessarry compliaction by inconsistent naming :( if self.type.startswith('opt-'): return self.type.replace('-','') + '-header' + elif self.type == 'genericFileManagement': + return 'gfm-header' + elif self.type == 'akaParameter': + return 'aka-header' + elif self.type == 'cdmaParameter': + return 'cdma-header' + elif self.type == 'application': + return 'app-header' + elif self.type == 'header': + return None + elif self.type == 'pukCodes': + # note how they couldn't even consistently captialize the 'header' suffix :( + return 'puk-Header' + elif self.type == 'pinCodes': + # note how they couldn't even consistently captialize the 'header' suffix :( + return 'pin-Header' + elif self.type == 'securityDomain': + # note how they couldn't even consistently captialize the 'header' suffix :( + return 'sd-Header' return self.type + '-header' @property -- To view, visit https://gerrit.osmocom.org/c/pysim/+/36960?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: I37951a0441fe53fce7a329066aebd973389cb743 Gerrit-Change-Number: 36960 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge@osmocom.org> Gerrit-MessageType: newchange