allow fid of ef.dir and ef.atr for file creation
This commit is contained in:
@@ -237,9 +237,8 @@ class File(object):
|
|||||||
"""
|
"""
|
||||||
The constructor is supposed to be involved by creation of a DF or EF.
|
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"],
|
if (fid>0xFFFF or fid<0 or fid in [FID["PATHSELECTION"],
|
||||||
FID["PATHSELECTION"], FID["RESERVED"]] or filedescriptor>0xFF or
|
FID["RESERVED"]] or filedescriptor>0xFF or lifecycle>0xFF):
|
||||||
lifecycle>0xFF):
|
|
||||||
raise SwError(SW["ERR_INCORRECTPARAMETERS"])
|
raise SwError(SW["ERR_INCORRECTPARAMETERS"])
|
||||||
self.lifecycle = lifecycle
|
self.lifecycle = lifecycle
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
|
|||||||
Reference in New Issue
Block a user