[PATCH 2 of 2 jqplot] [views] Add a specific regid to JQPlotSimpleView

Simon Chabot simon.chabot at logilab.fr
Thu Mar 5 16:10:15 CET 2020


# HG changeset patch
# User Simon Chabot <simon.chabot at logilab.fr>
# Date 1583420096 -3600
#      Thu Mar 05 15:54:56 2020 +0100
# Node ID 38fd3fe0730656227e572f6a074f6ef668daa0ef
# Parent  0a6237db984009f601a4126efadadd62d382c960
# Available At https://hg.logilab.org/review/cubes/jqplot/
#              hg pull https://hg.logilab.org/review/cubes/jqplot/ -r 38fd3fe07306
[views] Add a specific regid to JQPlotSimpleView

This view (JQPlotSimpleView) inherits from JQPlotRsetView but does not
specialize the regid nor the selector. Therefore, for the same context
multiple views are available.

diff -r 0a6237db9840 -r 38fd3fe07306 cubicweb_jqplot/views.py
--- a/cubicweb_jqplot/views.py	Thu Mar 05 12:40:10 2020 +0100
+++ b/cubicweb_jqplot/views.py	Thu Mar 05 15:54:56 2020 +0100
@@ -308,6 +308,7 @@
 
 
 class JQPlotSimpleView(JQPlotRsetView):
+    __regid__ = 'jqplot.simple'
 
     onload = 'cw.cubes.jqplot.buildPlot("%(id)s", %(data)s, %(options)s);'
     default_legend = {'show': True,



More information about the cubicweb-devel mailing list