On 09/05/2006, at 14:27, Michele Cella wrote:

>
>
> Kevin Dangoor wrote:
>> On 5/9/06, Ronald Jaramillo <[EMAIL PROTECTED]> wrote:
>>>
>>> What about changing the setup, so we only display one widget at a
>>> time in a content area and we have a permanent list of all widgets
>>> to the left?
>>> A bit like the way the wx demo app work. At some point we could even
>>> allow people to change the template/ and or parameters to the widget
>>> directly through the browser and re-render/update the widget
>>> according to that.
>>
>> Updating parameters would be a cool feature!
>>
>>  I really like being able to scan the widgets and not have to click
>> through each one, so I wouldn't want this to go to that extreme of  
>> the
>> wx demo.
>>
>
> This shouldn't be difficult at all, I don't have time to implement it
> but I have the idea of how it should work here in my mind.

Me too :(

> Ideally, to make it easier I think that if you want to play with
> widget'params we should display the widget alone in a page.
>
> We then provide a simple form to tweak widgets' params, when you click
> apply we submit an ajax request to a method that does something like
> this:
>
> @expose(fragment=True)
> def apply_params(self, **kw):
>     [kw contains new params]
>     return [pick up the widget desc module name from kw].render(**kw)
>
> then we replace the sample div with the new one received by this
> method.
>
> This is only a concept of what we need but it should work.

What I have in mind is something similar (AJAX + innerHtml) but  
providing a large "scratchbox" textarea where you can implement (or  
copy paste) a widget.
This code, when asynchrnously submitted, would get compiled into a  
module and any widget found ( by dir(mod) ) would be displayed in  
that div.

The motivation behind this is that it would be ultra-cool to be able  
to write a widget interactively and see the results in real time. No  
need to restart the toolbox, not following bunch of lines of html  
soup in ipython, etc... Tweaking params is nice, but writing the  
*whole* widget is nicer ;)

My .2€
Alberto
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to