On Fri, May 28, 2010 at 1:54 PM, Roger Oberholtzer
<[email protected]> wrote:
> On May 28, 2010, at 6:11 PM, Olemis Lang wrote:
>> On Fri, May 28, 2010 at 10:56 AM, Roger Oberholtzer
>> <[email protected]> wrote:
>>> On Fri, 2010-05-21 at 08:21 -0500, Olemis Lang wrote:
>>>> On Fri, May 21, 2010 at 7:37 AM, Roger Oberholtzer
>>>> <[email protected]> wrote:
>>
[...]
>> I suggest you to check all files named `wiki.py` and enclose between
>> backquotes (i.e. like this one ` ) any text (in components docs)
>> separated by colons (i.e. like this one : ) . That should be the only
>> way to be absolutely sure ;o) .
>
> I have a bunch of eggs with plugins. Do you mean I should unpack each and 
> then modify any possible wiki.py, an then rezip the egg?
>

No, TracGViz egg only.

> In your example, you jumped straight to the grep command.  Where re you when 
> you run this? What code do you assume I have available for this.
>

Start doing this

{{{
#!sh

$ cd /path/to/trac/env/plugins/
$ cp TracGViz-1.3.4-py2.5.egg /tmp/
$ cd /tmp
$ unzip -x TracGViz-1.3.4-py2.5.egg -d TracGViz | grep "wiki.py"
  inflating: TracGViz/tracgviz/wiki.py
  inflating: TracGViz/tracgviz/wiki.pyc
  inflating: TracGViz/tracgviz/ig/wiki.py
  inflating: TracGViz/tracgviz/ig/wiki.pyc
$ grep -r "google\:" TracGViz
TracGViz/EGG-INFO/PKG-INFO:
[[iGoogleGadget(url=gadget:google:modules:motionchart,
TracGViz/EGG-INFO/PKG-INFO:
_table_query_url=[gviz:google:sheet:1234:B3-G17],
TracGViz/EGG-INFO/PKG-INFO:
[[MotionChart(_table_query_url=[gviz:google:sheet:1234:B3-G17],
TracGViz/EGG-INFO/PKG-INFO:
`gviz:google:sheet:<spreadsheet_id>[:[<sheet_name>][:<top_cell>-<bottom_cell>]][?[headers=<number>]]`
TracGViz/EGG-INFO/PKG-INFO:
`gviz:google:apps:<report_key>@<report_date>:<domain>[?tq=<query>]`
TracGViz/EGG-INFO/PKG-INFO:        TracLinks expressions starting with
`gviz:google:sheet:` prefix.
TracGViz/EGG-INFO/PKG-INFO:
`gviz:google:sheet:<sheet_id>[:<top_cell>-<bottom_cell>][?headers=<number>]`
TracGViz/EGG-INFO/PKG-INFO:        `gadget:google:modules:` prefix. Syntax ->
TracGViz/EGG-INFO/PKG-INFO:        `gadget:google:modules:<chart_name>`
TracGViz/EGG-INFO/PKG-INFO:
[[iGoogleGadget(url=gadget:google:modules:motionchart,
TracGViz/EGG-INFO/PKG-INFO:
_table_query_url=[gviz:google:sheet:1234:B3-G17],
Binary file TracGViz/tracgviz/wiki.pyc matches
TracGViz/tracgviz/wiki.py:
gviz:google:sheet:<spreadsheet_id>[:[<sheet_name>][:<top_cell>-<bottom_cell>]][?[headers=<number>]]
TracGViz/tracgviz/wiki.py:    - gviz:google:sheet:12345::B12-U37?headers=1
TracGViz/tracgviz/wiki.py:    - gviz:google:sheet:12345:Sheet1:B12-U37?headers=1
TracGViz/tracgviz/wiki.py:    - gviz:"google:sheet:12345:Sheet 1"
TracGViz/tracgviz/wiki.py:    - gviz:"google:sheet:12345:Sheet
1:B12-U37?headers=1"
TracGViz/tracgviz/wiki.py:
gviz:google:apps:<report_key>@<report_date>:<domain>[?tq=<query>]
TracGViz/tracgviz/wiki.py:    -
gviz:"google:apps:asdfa014mm129anpsmdasdas...@2008-08-31:example.com?tq=select
rdate,count_7_day_actives where count_7_day_actives > 100"
TracGViz/tracgviz/wiki.py:                            "Syntax ->
gviz:google:apps:<report_key>" \
Binary file TracGViz/tracgviz/ig/wiki.pyc matches
TracGViz/tracgviz/ig/wiki.py:    gadget:google:modules:<chart_name>
TracGViz/tracgviz/ig/wiki.py:    - gadget:google:modules:line-chart
TracGViz/tracgviz/CHANGES:
[[iGoogleGadget(url=gadget:google:modules:motionchart,
TracGViz/tracgviz/CHANGES:    _table_query_url=[gviz:google:sheet:1234:B3-G17],
TracGViz/tracgviz/CHANGES:
[[MotionChart(_table_query_url=[gviz:google:sheet:1234:B3-G17],
TracGViz/tracgviz/CHANGES:
`gviz:google:sheet:<spreadsheet_id>[:[<sheet_name>][:<top_cell>-<bottom_cell>]][?[headers=<number>]]`
TracGViz/tracgviz/CHANGES:
`gviz:google:apps:<report_key>@<report_date>:<domain>[?tq=<query>]`
TracGViz/tracgviz/CHANGES:  TracLinks expressions starting with
`gviz:google:sheet:` prefix.
TracGViz/tracgviz/CHANGES:
`gviz:google:sheet:<sheet_id>[:<top_cell>-<bottom_cell>][?headers=<number>]`
TracGViz/tracgviz/CHANGES:  `gadget:google:modules:` prefix. Syntax ->
TracGViz/tracgviz/CHANGES:  `gadget:google:modules:<chart_name>`
TracGViz/tracgviz/CHANGES:
[[iGoogleGadget(url=gadget:google:modules:motionchart,
TracGViz/tracgviz/CHANGES:    _table_query_url=[gviz:google:sheet:1234:B3-G17],

$ find TracGViz/ -name "wiki.py"
TracGViz/tracgviz/wiki.py
TracGViz/tracgviz/ig/wiki.py

}}}

This output will show you files and locations that might need some
repair . Firstly enclose between backquotes the following text found
in file TracGViz/tracgviz/wiki.py

{{{
gviz:google:apps:<report_key>@<report_date>:<domain>[?tq=<query>]
}}}

Do the same thing with all other similar text you can find in the
(grep) list not enclosed between backquotes *IF THEY ARE INSIDE
DOCSTRINGS* (/me not shouting, this is important ;o). The file to be
modified is shown in the left-side (at the beginning of each line)

If you have source distribution at hand then unzip TracGViz-1.3.4.zip
rather than egg. Rebuild the plugin, e.g. if you are using sources :

{{{
#!sh

$ cd TracGViz
$ python setup.py bdist_egg
$ cp dist/TracGViz-1.3.4-*.egg /path/to/trac/env/plugins/
}}}

and restart (reload | update | ...) the server e.g.

{{{
#!sh

$ sudo kill -s HUP `pgrep apache2`
}}}

Once you finish please let me know if this solved the problem .

> Sorry for being dense here.

nevermind

> Of course, I am very interested in learning.

cool !

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
Control de usuarios personalizado con Apache y mod_authnz_external -
http://feedproxy.google.com/~r/simelo-es/~3/cBNqfg_xMaw/control-de-usuarios-personalizado-con.html

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to