Christopher Arndt schrieb:
> alex bodnaru schrieb:
>> is this requirement for tg1.1 with toscawidgets too?
>
> Technically, yes, since the requirement is put down in TG's setup.py
> file. But IIRC, tw comes with it's own version of MochiKit and
> preferably uses jQuery anyway, so it won't use tgMochiKit. The TG
> "mochikit" widget, which makes use of tgMochiKit is a TG widget only.
The mochikit widget for tw seems to have disappeared. But you can easily
use tgMochiKit with tw like this:
import tgmochikit
from turbogears.widgets import register_static_directory
from tw.api import JSLink
tgmochikit.init(register_static_directory, version="1.4", packed=False)
mochikit_js = [JSLink(link='/tg_widgets/tgmochikit/%s' % p)
for p in tgmochikit.get_paths()]
N.B: using 'packed=True' does not work with the current release because
it put the packed version in a wrong path. See my other mail in this
thread for details.
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---