aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2021-03-09 21:57:57 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2021-03-19 17:48:49 +0100
commit660615800caab3fbee0e6b2e9f6ce8ebdc3df41f (patch)
treee331717cb321b18a606976f20641128d4e6b8a47
parente8bc1b42be4e251b9f9fe46c64ed24c35914523f (diff)
filesystem: add comment to inform about checks in add_file()
The method add_file of class CardDF does some constraint checking to the basic file parameters (e.g. fid). Since one might also expect those checks in the superclass CardFile lets leave a comment to make the code better understandable. Change-Id: Iebae28909fe6aade3bd4024112a222819572d735 Related: OS#4963
-rw-r--r--pySim/filesystem.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pySim/filesystem.py b/pySim/filesystem.py
index 4c84f66..f412d73 100644
--- a/pySim/filesystem.py
+++ b/pySim/filesystem.py
@@ -55,6 +55,10 @@ class CardFile(object):
self.parent.add_file(self)
self.shell_commands = []
+ # Note: the basic properties (fid, name, ect.) are verified when
+ # the file is attached to a parent file. See method add_file() in
+ # class Card DF
+
def __str__(self):
if self.name:
return self.name