Set standard structure
authorAnthony Garcia <anthony.garcia@inria.fr>
Wed, 16 Oct 2013 16:34:48 +0000 (18:34 +0200)
committerAnthony Garcia <anthony.garcia@inria.fr>
Wed, 16 Oct 2013 16:34:48 +0000 (18:34 +0200)
plugins/senslabmap/__init__.py
plugins/senslabmap/senslabmap.py [deleted file]
portal/sliceview.py

index e69de29..7540edb 100644 (file)
@@ -0,0 +1,33 @@
+from unfold.plugin import Plugin
+
+class SensLabMap (Plugin):
+
+    # set checkboxes if a final column with checkboxes is desired
+    # pass columns as the initial set of columns
+    #   if None then this is taken from the query's fields
+    def __init__ (self, query, query_all, **settings):
+        Plugin.__init__ (self, **settings)
+        self.query = query
+        self.query_all = query_all
+        self.query_all_uuid = query_all.query_uuid
+
+    def template_file (self):
+        return "senslabmap.html"
+
+    def template_env (self, request):
+        env={}
+        return env
+
+    def requirements (self):
+        reqs = {
+            'js_files' : [ "js/senslabmap.js",
+                           "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js",
+                           "js/three.js", "js/grenoble.js", "js/viewer3D.js",
+                           ] ,
+            'css_files': [ "css/senslabmap.css" ,
+                           ],
+            }
+        return reqs
+
+    # the list of things passed to the js plugin
+    def json_settings_list (self): return ['plugin_uuid', 'dom_id', 'query_uuid', 'query_all_uuid']
diff --git a/plugins/senslabmap/senslabmap.py b/plugins/senslabmap/senslabmap.py
deleted file mode 100644 (file)
index 7540edb..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-from unfold.plugin import Plugin
-
-class SensLabMap (Plugin):
-
-    # set checkboxes if a final column with checkboxes is desired
-    # pass columns as the initial set of columns
-    #   if None then this is taken from the query's fields
-    def __init__ (self, query, query_all, **settings):
-        Plugin.__init__ (self, **settings)
-        self.query = query
-        self.query_all = query_all
-        self.query_all_uuid = query_all.query_uuid
-
-    def template_file (self):
-        return "senslabmap.html"
-
-    def template_env (self, request):
-        env={}
-        return env
-
-    def requirements (self):
-        reqs = {
-            'js_files' : [ "js/senslabmap.js",
-                           "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js",
-                           "js/three.js", "js/grenoble.js", "js/viewer3D.js",
-                           ] ,
-            'css_files': [ "css/senslabmap.css" ,
-                           ],
-            }
-        return reqs
-
-    # the list of things passed to the js plugin
-    def json_settings_list (self): return ['plugin_uuid', 'dom_id', 'query_uuid', 'query_all_uuid']
index 1ff92d3..b9293b9 100644 (file)
@@ -14,7 +14,7 @@ from plugins.tabs                    import Tabs
 from plugins.hazelnut                import Hazelnut 
 from plugins.resources_selected      import ResourcesSelected
 from plugins.googlemap               import GoogleMap
-from plugins.senslabmap.senslabmap   import SensLabMap
+from plugins.senslabmap              import SensLabMap
 from plugins.querycode               import QueryCode
 from plugins.query_editor            import QueryEditor
 from plugins.active_filters          import ActiveFilters