def recording(self): for receiver, response in register_recording_provider.send_robust( self.request.event): if (response and not isinstance(response, Exception) and hasattr(response, 'get_recording')): recording = response.get_recording(self.submission) if recording and recording['iframe']: return recording return {}
def recording(self): for __, response in register_recording_provider.send_robust( self.request.event): if (response and not isinstance(response, Exception) and getattr(response, "get_recording", None)): recording = response.get_recording(self.submission) if recording and recording["iframe"]: return recording return {}
def recording(self): for receiver, response in register_recording_provider.send_robust( self.request.event): if (response and not isinstance(response, Exception) and hasattr(response, 'get_recording')): recording = response.get_recording(self.object.submission) if recording and recording['iframe']: return recording else: print(response) if self.object.submission.rendered_recording_iframe: return { 'iframe': self.object.submission.rendered_recording_iframe, 'csp_header': 'https://media.ccc.de', } return {}