def draw_stalker_scene_add_from_shots_menu_item(self, context):
    """draws one scene/add from shots scene menu item
    """

    logger.debug(self.stalker_entity_id % 'entity_id   : %s')
    logger.debug('entity_name : %s' % self.stalker_entity_name)

    layout = self.layout

    scene = Task.query.get(self.stalker_entity_id)

    # Add All Shot Task Outputs
    op = layout.operator(
        StalkerSceneAddAllShotOutputsOperator.bl_idname,
        text='Add All Shot Outputs'
    )
    op.stalker_entity_id = scene.id
    op.stalker_entity_name = scene.name

    # separator
    layout.separator()

    # Previs
    op = layout.operator(
        StalkerSceneAddAllShotPrevisOutputsOperator.bl_idname,
        text='Previs'
    )
    op.stalker_entity_id = scene.id
    op.stalker_entity_name = scene.name

    # Animation
    op = layout.operator(
        StalkerSceneAddAllShotAnimationOutputsOperator.bl_idname,
        text='Animation'
    )
    op.stalker_entity_id = scene.id
    op.stalker_entity_name = scene.name

    # Lighting
    op = layout.operator(
        StalkerSceneAddAllShotLightingOutputsOperator.bl_idname,
        text='Lighting'
    )
    op.stalker_entity_id = scene.id
    op.stalker_entity_name = scene.name

    # Comp
    op = layout.operator(
        StalkerSceneAddAllShotCompOutputsOperator.bl_idname,
        text='Comp'
    )
    op.stalker_entity_id = scene.id
    op.stalker_entity_name = scene.name

    # separator
    layout.separator()

    # then add menu for each shot under its "Shots" tasks
    shots_task = Task.query\
        .filter(Task.parent == scene)\
        .filter(Task.name == 'Shots')\
        .first()

    if shots_task:
        for shot in shots_task.children:
            # add a shot menu
            idname = idname_template % (shot.entity_type, shot.id)
            layout.menu(idname)
dataset/ETHPy150Open eoyilmaz/anima/anima/env/blender/reviewer.py/draw_stalker_scene_add_from_shots_menu_item/swapped operands of `%`