added more fci data for nPA

This commit is contained in:
Frank Morgner
2013-09-11 06:38:56 +02:00
parent 1998fddf69
commit 12aef1e72f
2 changed files with 8 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -232,7 +232,8 @@ class File(object):
lifecycle=LCB["ACTIVATED"], lifecycle=LCB["ACTIVATED"],
simpletlv_data=None, simpletlv_data=None,
bertlv_data=None, bertlv_data=None,
SAM=None): SAM=None,
extra_fci_data=''):
""" """
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.
""" """
@@ -248,6 +249,7 @@ class File(object):
self.fid = fid self.fid = fid
self.filedescriptor = filedescriptor self.filedescriptor = filedescriptor
self.SAM = SAM self.SAM = SAM
self.extra_fci_data = extra_fci_data
if simpletlv_data: if simpletlv_data:
if not isinstance(simpletlv_data, list): if not isinstance(simpletlv_data, list):
raise TypeError("must be a list of (tag, length, value)-tuples") raise TypeError("must be a list of (tag, length, value)-tuples")
@@ -566,6 +568,7 @@ class MF(DF):
""" """
fdm = [ chr(TAG["FILEIDENTIFIER"])+"\x02"+inttostring(file.fid, 2), fdm = [ chr(TAG["FILEIDENTIFIER"])+"\x02"+inttostring(file.fid, 2),
chr(TAG["LIFECYCLESTATUS"])+"\x01"+chr(file.lifecycle) ] chr(TAG["LIFECYCLESTATUS"])+"\x01"+chr(file.lifecycle) ]
fdm.append(file.extra_fci_data)
# TODO filesize and data objects # TODO filesize and data objects
if isinstance(file, EF): if isinstance(file, EF):