Attention is currently required from: laforge.
neels has posted comments on this change by neels. ( https://gerrit.osmocom.org/c/pysim/+/40198?usp=email )
Change subject: personalization: implement reading back values from a PES ......................................................................
Patch Set 6:
(1 comment)
File pySim/esim/saip/personalization.py:
https://gerrit.osmocom.org/c/pysim/+/40198/comment/6748553e_7e8c1591?usp=ema... : PS6, Line 56: de
this is somewhat of a copy of pySim.esim.saip.File. […]
thanks for helping, because i could not figure this out. ...actually i still can't figure out the API.
I tried to find example callers of file_content_from_tuples() but they simply do not exist. I'm stuck with from_tuples() which doesn't do what i want.
Essentially, I need a ProfileElement.get_bytes() function? In detail, how exactly do I improve this caller?
for pe in pes.get_pes_for_type('usim'): imsi_pe = pe.decoded.get('ef-imsi', None) if imsi_pe: yield dec_imsi(b2h(file_tuples_content_as_bytes(imsi_pe))) ^^^^^^^^^^^^^^^^^^^
thanks