from django.utils.translation import ugettext_lazy as _

from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool

from .conf import settings


class AldrynSearchApphook(CMSApp):
    name = _("aldryn search")

    def get_urls(self, *args, **kwargs):
        return ['aldryn_search.urls']


if settings.ALDRYN_SEARCH_REGISTER_APPHOOK:
    apphook_pool.register(AldrynSearchApphook)

[((10, 11, 10, 29), 'django.utils.translation.ugettext_lazy', '_', ({(10, 13, 10, 28): '"""aldryn search"""'}, {}), "('aldryn search')", True, 'from django.utils.translation import ugettext_lazy as _\n'), ((17, 4, 17, 46), 'cms.apphook_pool.apphook_pool.register', 'apphook_pool.register', ({(17, 26, 17, 45): 'AldrynSearchApphook'}, {}), '(AldrynSearchApphook)', False, 'from cms.apphook_pool import apphook_pool\n')]