#!/usr/bin/env python
# -*- coding: utf_8 -*-

from application.signal_manager import signalManager
{%- for api in config %}
from .{{ api['name'] }} import {{ api["name"] }}Manager
{%- endfor %}

def initConnect():
{%- for api in config %}
    {%- for key, value in api.get("view").items() %}
    signalManager.action{{ key | letterUpper }}{{ api.get("name") | letterUpper }}.connect({{ api.get("name") }}Manager.{{ key }})
    {%- endfor %}
{%- endfor %}
