Declare PyAMS_security resources
authorThierry Florac <thierry.florac@onf.fr>
Tue, 16 May 2017 11:19:54 +0200
changeset 79 4a31bf48560b
parent 78 c495f40d039e
child 80 516461b95b63
Declare PyAMS_security resources
src/pyams_security/__init__.py
--- a/src/pyams_security/__init__.py	Tue May 16 11:19:31 2017 +0200
+++ b/src/pyams_security/__init__.py	Tue May 16 11:19:54 2017 +0200
@@ -13,9 +13,14 @@
 __docformat__ = 'restructuredtext'
 
 
-from fanstatic import Library
+from fanstatic import Library, Resource
 library = Library('pyams_security', 'resources')
 
+pyams_security = Resource(library, 'js/security.js',
+                          minified='js/security.min.js',
+                          bottom=True)
+
+
 from pyramid.i18n import TranslationStringFactory
 _ = TranslationStringFactory('pyams_security')