from ..utils.routing import RuleFactory
from ..utils.types import ServicesConfig
from .views import get_get_rules_func


class Topics(RuleFactory):
    """
    App for simple topics that can be shown in agenda.

    During initialization we bind the get_rules method from apps's views.
    """

    def __init__(self, services: ServicesConfig) -> None:
        self.get_rules_func = get_get_rules_func(services)

from ..utils.routing import RuleFactory
from ..utils.types import ServicesConfig
from .views import get_get_rules_func


class Topics(RuleFactory):
    """
    App for simple topics that can be shown in agenda.

    During initialization we bind the get_rules method from apps's views.
    """

    def __init__(self, services: ServicesConfig) -> None:
        self.get_rules_func = get_get_rules_func(services)

App for simple topics that can be shown in agenda.      During initialization we bind the get_rules method from apps's views.