Source code for agency.views.search

from onegov.agency import AgencyApp
from onegov.agency.layout import AgencySearchLayout
from onegov.core.security import Public
from onegov.org.models import Search
from onegov.org.views.search import search as search_view


from typing import TYPE_CHECKING
if TYPE_CHECKING:
    from onegov.agency.request import AgencyRequest
    from onegov.core.orm import Base
    from onegov.core.types import RenderData
    from webob import Response


@AgencyApp.html(model=Search, template='search.pt', permission=Public)