Example #1
0
    def save(self, cfg_manager, reservation_id):
        content = base64.decodestring(self.file_content)

        storer = FileStorer(cfg_manager, reservation_id)
        file_stored = storer.store_file(content, self.file_info)
        file_path = file_stored.file_path
        file_hash = file_stored.file_hash
        return FileSent(file_path, file_hash, self.timestamp_before, self.response, self.timestamp_after, self.file_info)
Example #2
0
    def save(self, cfg_manager, reservation_id):
        content = base64.decodestring(self.file_content)

        storer = FileStorer(cfg_manager, reservation_id)
        file_stored = storer.store_file(content, self.file_info)
        file_path = file_stored.file_path
        file_hash = file_stored.file_hash
        return FileSent(file_path, file_hash, self.timestamp_before,
                        self.response, self.timestamp_after, self.file_info)
 def _store_file(self, file_content, file_info):
     storer = FileStorer(self._cfg_manager, self._reservation_id, self.time_module)
     return storer.store_file(file_content, file_info)
 def _store_file(self, file_content, file_info):
     storer = FileStorer(self._cfg_manager, self._reservation_id,
                         self.time_module)
     return storer.store_file(file_content, file_info)