Declare PyAMS_zodbbrowser resources
authorThierry Florac <thierry.florac@onf.fr>
Tue, 16 May 2017 11:41:34 +0200
changeset 8 5bb6e0ba63fa
parent 7 ff85e0caffdb
child 9 084d3778c025
Declare PyAMS_zodbbrowser resources
src/pyams_zodbbrowser/zmi/__init__.py
--- a/src/pyams_zodbbrowser/zmi/__init__.py	Wed Jun 15 12:46:05 2016 +0200
+++ b/src/pyams_zodbbrowser/zmi/__init__.py	Tue May 16 11:41:34 2017 +0200
@@ -17,3 +17,16 @@
 # import interfaces
 
 # import packages
+from fanstatic import Library, Resource
+
+
+library = Library('pyams_zodbbrowser', 'resources')
+
+
+zodbbrowser_css = Resource(library, 'css/zodbbrowser.css',
+                           minified='css/zodbbrowser.min.css')
+
+zodbbrowser = Resource(library, 'js/zodbbrowser.js',
+                       minified='js/zodbbrowser.min.js',
+                       bottom=True,
+                       depends=[zodbbrowser_css, ])