Attention is currently required from: Hoernchen, dexter, fixeria, pespin.

laforge has posted comments on this change by dexter. ( 
https://gerrit.osmocom.org/c/pysim/+/42741?usp=email )

Change subject: pySim/global_platform: make functionality available outside of 
cmd2
......................................................................


Patch Set 7:

(1 comment)

File pySim/global_platform/__init__.py:

https://gerrit.osmocom.org/c/pysim/+/42741/comment/466c6879_33069d58?usp=email :
PS7, Line 692:
I would love if there was some kind of method by which an API user can see what 
kind of command-methods a class like this exposes.  So here we have put_key, 
gp_version, get_status, set_status, etc. and one has to manually read through 
the source to find them.

One option would be to have some kind of decorator, which some other code could 
then use as 'tag' to detect such SCC methods.  Another option would be some 
kind of list of SCC methods inside the class. Yet another option would be to 
prefix them with something like scc_ to set them apart.  There might even be 
better options like having some kind of intermediate 'container class' like we 
wave in cmd2 with the AddlShellCommands.

I'm leaving it up to you to think what makes most sense.



--
To view, visit https://gerrit.osmocom.org/c/pysim/+/42741?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Idf4e4b58bf49ba62b2c22de4c49a2dcacfa872cb
Gerrit-Change-Number: 42741
Gerrit-PatchSet: 7
Gerrit-Owner: dexter <[email protected]>
Gerrit-Reviewer: Hoernchen <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-CC: fixeria <[email protected]>
Gerrit-Attention: Hoernchen <[email protected]>
Gerrit-Attention: pespin <[email protected]>
Gerrit-Attention: fixeria <[email protected]>
Gerrit-Attention: dexter <[email protected]>
Gerrit-Comment-Date: Fri, 09 Oct 2026 12:15:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Reply via email to