Added application search configuration interface
authorThierry Florac <tflorac@ulthar.net>
Tue, 03 Jun 2014 23:33:03 +0200
changeset 31 103c1f925a8b
parent 30 3c2c5114bc5f
child 32 c05e56fe11fb
Added application search configuration interface
src/ztfy/myams/interfaces/search.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ztfy/myams/interfaces/search.py	Tue Jun 03 23:33:03 2014 +0200
@@ -0,0 +1,39 @@
+#
+# Copyright (c) 2012 Thierry Florac <tflorac AT onf.fr>
+# All Rights Reserved.
+#
+
+
+# import standard packages
+
+# import Zope3 interfaces
+
+# import local interfaces
+
+# import Zope3 packages
+from zope.interface import Interface
+from zope.schema import TextLine
+
+# import local packages
+
+from ztfy.myams import _
+
+
+class IMyAMSApplicationSearch(Interface):
+    """MyAMS application search configuration interface"""
+
+    site_search_placeholder = TextLine(title=_("Site search placeholder"),
+                                       required=False,
+                                       default=_("Search..."))
+
+    site_search_handler = TextLine(title=_("Site search handler"),
+                                   required=False,
+                                   default=u"#search.html")
+
+    mobile_search_placeholder = TextLine(title=_("Mobile search placeholder"),
+                                         required=False,
+                                         default=_("Search..."))
+
+    mobile_search_handler = TextLine(title=_("Mobile search handler"),
+                                     required=False,
+                                     default=u'#search.html')