allow fid of ef.dir and ef.atr for file creation

This commit is contained in:
Frank Morgner
2014-09-15 21:23:01 +02:00
parent c75f32d426
commit 6b5b1a0c29

View File

@@ -237,9 +237,8 @@ class File(object):
"""
The constructor is supposed to be involved by creation of a DF or EF.
"""
if (fid>0xFFFF or fid<0 or fid in [FID["EFDIR"], FID["EFATR"],
FID["PATHSELECTION"], FID["RESERVED"]] or filedescriptor>0xFF or
lifecycle>0xFF):
if (fid>0xFFFF or fid<0 or fid in [FID["PATHSELECTION"],
FID["RESERVED"]] or filedescriptor>0xFF or lifecycle>0xFF):
raise SwError(SW["ERR_INCORRECTPARAMETERS"])
self.lifecycle = lifecycle
self.parent = parent