doc/changes/3.27.rst
changeset 12798 45242ceec212
parent 12797 00c14fb7c931
child 12799 e5752c14e5f0
equal deleted inserted replaced
12797:00c14fb7c931 12798:45242ceec212
    47 * on DBG_SQL and/or DBG_RQL, if pygments is installed, syntax highlight sql/rql
    47 * on DBG_SQL and/or DBG_RQL, if pygments is installed, syntax highlight sql/rql
    48   debug output
    48   debug output
    49 
    49 
    50 * allow to specify the instance id for any instance command using the
    50 * allow to specify the instance id for any instance command using the
    51   CW_INSTANCE global variable instead of or giving it as a cli argument
    51   CW_INSTANCE global variable instead of or giving it as a cli argument
       
    52 
       
    53 * when debugmode is activated ('-D/--debug' on the pyramid command for
       
    54   example), the HTML generated by CW will contains new tags that will indicate
       
    55   by which object in the code it has been generated and in which line of which
       
    56   source code.
       
    57   For example:
       
    58 
       
    59 .. code-block:: html
       
    60 
       
    61     <div
       
    62       cubicweb-generated-by="cubicweb.web.views.basetemplates.TheMainTemplate"
       
    63       cubicweb-from-source="/home/user/code/logilab/cubicweb/cubicweb/web/views/basetemplates.py:161"
       
    64       id="contentmain">
       
    65         <h1
       
    66           cubicweb-generated-by="cubicweb.web.views.basetemplates.TheMainTemplate"
       
    67           cubicweb-from-source="/home/user/code/logilab/cubicweb/cubicweb/view.py:136">
       
    68             unset title
       
    69         </h1>
       
    70         [...]
       
    71     </div>
       
    72 
       
    73 While this hasn't been done yet, this feature is an open path for building dynamic tools that can help inspect the page.
    52 
    74 
    53 * add a new '-t/--toolbar' option the pyramid command to activate the pyramid debugtoolbar
    75 * add a new '-t/--toolbar' option the pyramid command to activate the pyramid debugtoolbar
    54 
    76 
    55 * a series of pyramid debugtoolbar panels specifically made for CW, see bellow
    77 * a series of pyramid debugtoolbar panels specifically made for CW, see bellow
    56 
    78