On Tue, 2007-20-03 at 23:40 -0300, Jorge Godoy wrote:
> iain duncan <[EMAIL PROTECTED]> writes:
> 
> >> If it is expecting the form to be retrieve as xhtml -- I've never used 
> >> such a
> >> widget -- then you should render the form before returning and the widget
> >> mechanism will deal with placing the errors in the correct places.  
> >
> > Isn't that how the Remote Form widget works? That is what the tutorial
> > shows at any rate, that the dom element passed in to the 'update'
> > argument gets replaced with the xhtml coming from the method passed in
> > with the 'action' par. Am I misunderstanding or do you mean you don't
> > use that widget?
> 
> I don't use that widget.  Never did. ;-)
> 
> >>      result = conversations_grid.render(conversations).decode('utf-8')
> >> 
> >> This renders a grid with "conversations" as values and places the resulting
> >> HTML inside the result variable.
> >> 
> >> You'd have to do something like that but passing the errors dict as well so
> >> that those errors can be rendered with the form.
> >
> > If you don't mind ( I know you've spent a LOT of time today answering
> > me! ) can you point me at how that is done? The examples I'm finding
> > seem to assume it's done automatically. 
> 
> I'm really tired now to write it to you (plus I'll have to get my mother at
> the airport early in the morning), but remind me tomorrow and I'll try sending
> you something that does that.  (I might even try learning the Remote Form
> widget to help you with that...)
> 
> But you'll have to write some docs on our Wiki to document all that in
> exchange ;-)
> 
> 
> Is it a deal? ;-)

Done! ( As long as you're ok proofreading, I don't want to mislead
people! ) I've been thinking the widgets are the area to work on, I was
going to do something on SQLAlchemy association proxy, but I'm not sure
that's worthwhile now that Elixir is out. I will have time to write in
April. 

The frames version of an admin with Ajax forms is shaping up nicely too.
It's a really nice interface for updating tree structures. I will
certainly publish that code too.

Iain



--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to