Пример #1
0
 def preview(source, target, b_map, self_source, **_):
     broadcast = Broadcast(BroadcastMap(**b_map), source, source if self_source else target)
     return {broadcast_type['id']: broadcast.substitute(broadcast_type['id']) for broadcast_type in broadcast_types}
Пример #2
0
 def preview(self):
     content = self._content()
     broadcast = Broadcast(BroadcastMap(**content.b_map), content.source, content.source if content.self_source else content.target)
     return {broadcast_type['id']: broadcast.substitute(broadcast_type['id']) for broadcast_type in broadcast_types}