--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_notify_ws/include.py Thu Jun 02 16:02:23 2016 +0200
@@ -0,0 +1,37 @@
+#
+# Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net>
+# 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
+
+# import packages
+
+
+def include_package(config):
+ """Pyramid include"""
+
+ # add translations
+ config.add_translation_dirs('pyams_notify_ws:locales')
+
+ # load registry components
+ config.scan()
+ config.add_route('subscribe', '/subscribe')
+ config.add_route('notify', '/notify')
+
+ memcached_server = config.registry.settings.get('pyams_notify_ws.memcached_server')
+ if memcached_server:
+ from .notify import init_memcached_client
+ init_memcached_client(memcached_server)