def getBlendChecksum(self): """ Get checksum for .blend file """ if self.blend_path is None: return '' return md5_for_file(self.blend_path)
def isChecksumOk(self): """ Compare MD5 checksum of received file and file at serevr """ proxy = slave.Slave().getProxy() self_checksum = md5_for_file(self.getBlend()) master_checksum = proxy.job.getBlendChecksum(self.jobUUID) return self_checksum == master_checksum