Thanks for the tip, Fred.

What I was trying to do was make a widget out of plex by following
the steps in the video. Simply as a learning experience. That was fine and
is working well in my test application.

I just wanted to see how to eliminate the need to make changes in the third-party
js library. My thoughts were more along the lines of licensing. For instance,
if I take this library, can I package it and submit it to cogbin if I have to
modify it? It's not my library after all...

That's what prompted me to ask the question. It's really not a huge
problem, I am just lazy... I mean 'curious'...

Nicky

On 7/31/06, gasolin <[EMAIL PROTECTED]> wrote:

Nick:

If you just want manage your js with controller,
do the following in your controller.py:

{{{
# import modules
import pkg_resources
from turbogears.widgets import JSLink

# find static directory
js_dir = pkg_resources.resource_filename("plotkit",
                                         "static/_javascript_")
register_static_directory("plotkit", js_dir)

# find specific js
excanvas_js = JSLink("plotkit", "excanvas.js")
plotkit_packed_js = JSLink("plotkit", "PlotKit_Packed.js")
.....
}}}

--
Fred



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to