Exemple #1
0
    def add_schema_files(self, zipfile):
        for schema in os.listdir(schemas_path):
            filename = os.path.join(schemas_path, schema)
            arcname = os.path.join(
                self.get_folder_name(), 'header', 'xsd', schema)
            zipfile.write(filename, arcname)

            checksum_alg, checksum = file_checksum(filename)
            self.xsd.append(arelda.dateiSIP(
                schema,
                schema,
                checksum_alg,
                checksum,
                id=u'_xsd_{}'.format(os.path.splitext(schema)[0]),
            ))
Exemple #2
0
    def add_schema_files(self, zipfile):
        for schema in os.listdir(schemas_path):
            filename = os.path.join(schemas_path, schema)
            arcname = os.path.join(self.get_folder_name(), 'header', 'xsd',
                                   schema)
            zipfile.write(filename, arcname)

            checksum_alg, checksum = file_checksum(filename)
            self.xsd.append(
                arelda.dateiSIP(
                    schema,
                    schema,
                    checksum_alg,
                    checksum,
                    id=u'_xsd_{}'.format(os.path.splitext(schema)[0]),
                ))
Exemple #3
0
 def binding(self):
     datei = arelda.dateiSIP(id=self.id)
     datei.name = self.name
     datei.originalName = self.filename
     datei.pruefalgorithmus, datei.pruefsumme = file_checksum(self.filepath)
     return datei
Exemple #4
0
 def binding(self):
     datei = arelda.dateiSIP(id=self.id)
     datei.name = self.name
     datei.originalName = self.filename
     datei.pruefalgorithmus, datei.pruefsumme = file_checksum(self.filepath)
     return datei