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.

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.

Ciao
Michele


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