laforge has submitted this change. (
https://gerrit.osmocom.org/c/pysim/+/37009?usp=email )
Change subject: esim.saip: Introduce ProfileElement.identification property
......................................................................
esim.saip: Introduce ProfileElement.identification property
Change-Id: I6525bb78619e574296488843e021d505e0632d99
---
M pySim/esim/saip/__init__.py
1 file changed, 16 insertions(+), 0 deletions(-)
Approvals:
fixeria: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
Jenkins Builder: Verified
osmith: Looks good to me, but someone else must approve
diff --git a/pySim/esim/saip/__init__.py b/pySim/esim/saip/__init__.py
index e5b99e7..9fa568c 100644
--- a/pySim/esim/saip/__init__.py
+++ b/pySim/esim/saip/__init__.py
@@ -198,6 +198,13 @@
return self.decoded.get(self.header_name, None)
@property
+ def identification(self):
+ if self.header:
+ return self.header['identification']
+ else:
+ return None
+
+ @property
def templateID(self):
"""Return the decoded templateID used by this profile element (if
any)."""
return self.decoded.get('templateID', None)
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37009?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: I6525bb78619e574296488843e021d505e0632d99
Gerrit-Change-Number: 37009
Gerrit-PatchSet: 4
Gerrit-Owner: laforge <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-MessageType: merged