laforge has uploaded this change for review.

View Change

esim.saip: Introduce ProfileElement.identification property

Change-Id: I6525bb78619e574296488843e021d505e0632d99
---
M pySim/esim/saip/__init__.py
1 file changed, 16 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/09/37009/1
diff --git a/pySim/esim/saip/__init__.py b/pySim/esim/saip/__init__.py
index 85323c0..938dc48 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 change 37009. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I6525bb78619e574296488843e021d505e0632d99
Gerrit-Change-Number: 37009
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge@osmocom.org>
Gerrit-MessageType: newchange