How is it possible to include a JSLink to an external adress for
example: http://soemurl/somejavascript.js
It seems from the source of class Link in base.py the link is hardcoded
to a local adress:
d["link"] = "/%stg_widgets/%s/%s" % (startup.webpath,
self.mod,
self.name)
Greg
subclass JSLink, like so:
from turbogears.widgets import JSLink
class ExtJSLink(JSLink):
def update_params(self, d):
super(ExtJSLink, self).update_params(d)
d['link'] = self.name
Works for me :)
Regards -- Andy