Hi again,

On Apr 11, 2006, at 5:30 PM, Alberto Valverde wrote:

>
> 1) Is the Mochikit you're using any different from the one TG
> bundles? If not, you could skip all those mochi JSLinks and: [snip]

It's the scriptaculous port branch from MochiKit's svn, and it uses  
Sortable.js which for some reason doesn't make it into the packed  
version yet. So for now it needs all those individual files AFAICT.  
Hopefully that won't be the case for much longer.

> 2) All variables you list at template_vars you don't need to bind to
> self at __init__, as long as you call super cooperatively if
> overriding __init__ then Widget will do it for you. This might let
> you skip __init__ completely. And, besides that, anyone looking at
> the code knows from a quick glance that those variables can be
> overriden when i) subclassing ii) initializing, iii) displaying
>
> 3) You might want to try quickstarting a widgets project (tg-admin
> quickstart -twidgets sortable) so you can tweak setup.py and have a
> nice widget package that, once installed, can show a demo on the
> widget browser (I can lend a hand on this if you want). This is the
> preferred way of distribuitng them (and posting them at the cheesshop
> so they appear at the Cogbin). You can take a look at the widget
> packages at http://www.turbogears.org/svn/turbogears/widgets for some
> examples.
>

Yeah I think with 2 & 3 it's just that I haven't studied the TG code  
& docs enough. (I haven't been following the list & svn as much I'd  
like lately.) I didn't know there was a special widgets option for  
quickstart. That's way cool. ;)


> I can't comment any further as I haven't tried it yet (your
> controllers doesn't include any demo). Now is time to sleep here,
> tomorrow I'll proably give it a closer look with more time...
>
> Nice work! and thanks for sharing it :)
>
> Alberto
>

Looking forward to further commentary!  I'll work on repacking it  
into a widgets project over the next few days.

Later,
--i

--~--~---------~--~----~------------~-------~--~----~
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