Changes between Version 16 and Version 17 of GoogleChartPlugin


Ignore:
Timestamp:
Aug 11, 2017, 8:28:59 AM (7 years ago)
Author:
figaro
Comment:

Moved example to description

Legend:

Unmodified
Added
Removed
Modified
  • GoogleChartPlugin

    v16 v17  
    55== Description
    66
    7 This plugin provides a simple way to chart the result of an SQL query using the [https://developers.google.com/chart/?hl=en Google Chart API].
    8 
    9 '''Note''': This plugin currently uses an eval() statement to turn parameters in Python dict syntax into an actual dictionary. This means you can pass tuples and lists to the engine. However, it is also risky, since you are allowing the author of the wiki page to execute arbitrary Python code. Until this has been replaced by a more limited parser that only accepts primitive types, do not use this plugin in an environment where you don't trust your users.
    10 
    11 Patches to fix this are welcome!
    12 
    13 For example, using JSON: install simplejson, then in Python:
    14 {{{
    15 >>> args = '["hurray",{"for":"json"}]'
    16 >>> import simplejson
    17 >>> simplejson.loads(args)
    18 ["hurray", {"for":"json"}]
    19 }}}
    20 
    21 == Bugs/Feature Requests
    22 
    23 Existing bugs and feature requests for GoogleChartPlugin are
    24 [report:9?COMPONENT=GoogleChartPlugin here].
    25 
    26 If you have any issues, create a
    27 [/newticket?component=GoogleChartPlugin new ticket].
    28 
    29 [[TicketQuery(component=GoogleChartPlugin&group=type,format=progress)]]
    30 
    31 == Download
    32 
    33 Download the zipped source from [export:googlechartplugin here].
    34 
    35 == Source
    36 
    37 You can check out GoogleChartPlugin from [/svn/googlechartplugin here] using Subversion, or [source:googlechartplugin browse the source] with Trac.
    38 
    39 == Installation
    40 
    41 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
    42 
    43 == Example
     7This plugin provides a simple way to chart the result of an SQL query using the [https://developers.google.com/chart/?hl=en Google Chart API]. It defines a macro called GChart that can be used to pass variables into for the creation of charts, which are subsequently displayed on your wiki page.
    448
    459=== Line chart
     
    11377See README.txt for more information.
    11478
     79'''Note''': This plugin currently uses an eval() statement to turn parameters in Python dict syntax into an actual dictionary. This means you can pass tuples and lists to the engine. However, it is also risky, since you are allowing the author of the wiki page to execute arbitrary Python code. Until this has been replaced by a more limited parser that only accepts primitive types, do not use this plugin in an environment where you don't trust your users.
     80
     81Patches to fix this are welcome!
     82
     83For example, using JSON: install simplejson, then in Python:
     84{{{
     85>>> args = '["hurray",{"for":"json"}]'
     86>>> import simplejson
     87>>> simplejson.loads(args)
     88["hurray", {"for":"json"}]
     89}}}
     90
     91== Bugs/Feature Requests
     92
     93Existing bugs and feature requests for GoogleChartPlugin are
     94[report:9?COMPONENT=GoogleChartPlugin here].
     95
     96If you have any issues, create a
     97[/newticket?component=GoogleChartPlugin new ticket].
     98
     99[[TicketQuery(component=GoogleChartPlugin&group=type,format=progress)]]
     100
     101== Download
     102
     103Download the zipped source from [export:googlechartplugin here].
     104
     105== Source
     106
     107You can check out GoogleChartPlugin from [/svn/googlechartplugin here] using Subversion, or [source:googlechartplugin browse the source] with Trac.
     108
     109== Installation
     110
     111General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
     112
    115113== Recent Changes
    116114