src/dirbs/importer/abstract_importer.py
def _compute_md5_hash(self):
        """Method to compute the MD5 hash for the filename."""
        self._logger.info('Computing MD5 hash of the input file...')
        with open(self._filename, 'rb') as f:
            md5 = compute_md5_hash(f)
        self._logger.info('Computed MD5 hash of the input file')
        metadata.add_optional_job_metadata(self._metadata_conn, 'dirbs-import', self.import_id,
                                           input_file_md5=md5)
Method to compute the MD5 hash for the filename.
Method to compute the MD5 hash for the filename.
Method to compute the MD5 hash for the filename .
def _compute_md5_hash(self):
        self._logger.info('Computing MD5 hash of the input file...')
        with open(self._filename, 'rb') as f:
            md5 = compute_md5_hash(f)
        self._logger.info('Computed MD5 hash of the input file')
        metadata.add_optional_job_metadata(self._metadata_conn, 'dirbs-import', self.import_id,
                                           input_file_md5=md5)
def _compute_md5_hash ( self ) : self . _logger . info ( 'Computing MD5 hash of the input file...' ) with open ( self . _filename , 'rb' ) as f : md5 = compute_md5_hash ( f ) self . _logger . info ( 'Computed MD5 hash of the input file' ) metadata . add_optional_job_metadata ( self . _metadata_conn , 'dirbs-import' , self . import_id , input_file_md5 = md5 )
Method to compute the MD5 hash for the filename.
Method to compute the MD5 hash for the filename .
"""Method to compute the MD5 hash for the filename."""
self