diff -r 000000000000 -r bca7a7e058a3 src/pyams_skin/viewlet/search/__init__.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/viewlet/search/__init__.py Thu Feb 13 11:43:31 2020 +0100 @@ -0,0 +1,35 @@ +# +# Copyright (c) 2008-2015 Thierry Florac +# All Rights Reserved. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE. +# + +__docformat__ = 'restructuredtext' + + +# import standard library + +# import interfaces +from pyams_skin.layer import IPyAMSLayer + +# import packages +from pyams_template.template import template_config +from pyams_viewlet.viewlet import contentprovider_config + + +@contentprovider_config(name='pyams.site_search') +@template_config(template='site-search.pt', layer=IPyAMSLayer) +class SiteSearchViewlet(object): + """Site search content provider""" + + +@contentprovider_config(name='pyams.mobile_search') +@template_config(template='mobile-search.pt', layer=IPyAMSLayer) +class MobileSearchViewlet(object): + """Mobile search content provider"""