Thanks Kevin.  You're doing a great job with TG.  Don't let my
questions slow down your work.  I ask alot of them.

>If this is something that you really need to use differently in
>different contexts, then you make a widget. Likely your own subclass
>of some widget that then defines the JavaScripts to include.

This is what I'm trying to do.  I have a widget that subclasses
TextWidget. Call it MyWidget.  MyWidget will be used in several views.
It includes a hyperlink (in the label) that opens a search dialog in a
new neatly sized window.  The search dialog window returns a value to
the MyWidget text field.  The part I'm stuck on is defining the
javascript for the widget.  It looks like:

     widget.javascript = [(widget.JSLink(?, "openwin.js")), ]

I don't know what to put in the place of ?.  I see that MochiKit.js can
be accessed like this:

     widget.javascript = [(widget.JSLink("turbogears",
"js/MochiKit.js")), ]

How do I in the same way access my javascript files in the
myapp/static/javascript/ directory?

I would guess this should be related to staticFilter.dir in the config.
 Mine looks like:
    staticFilter.dir = "static"

Reply via email to