Jonathan LaCour wrote:
>
> Thanks for the complements!  I wrote this a while back, and I was
> definitely still learning a lot about TurboGears, so I was hoping
> that there weren't too many shameful mistakes in the code ;)
>

Thanks to you again. :-)

> Now, I am well-versed in 0.8, but still catching up to 0.9.  There
> have been so many changes and improvements that its hard to keep up
> with them all!
>

That's good isn't it?! ;-)

> >
> > raise http.HTTPRedirect(url('/dashboard'))
>
> Thanks, I just fixed this in changeset 88.  This should make me more
> "futureproof" in case First Class goes to RhubartTart, or something
> else entirely.
>

Yep, definitely and is less code duplication.


>
> I got started on something to handle this in changeset 87.  At the
> very least, I am not using the wonky "ContainedWidget" stuff anymore,
> and I am not overriding __init__ anymore.

Very good.

>
> Now, it seems that I am supposed to be able to share instances of a
> widget.  I haven't done this part yet, because I want to make sure I
> understand.  Basically, I should be able to do something like this:
>
> In the controller:
>
>      risk_widget = RiskWidget()
>
>      @expose(template='mytemplate')
>      def do_thing(self):
>       return dict(risk_widget=risk_widget)
>
> In the template:
>
>      <span py:for="risk in risks">
>          ${risk_widget.update_data(risk=risk).display()}
>      </span>
>
> ... is this correct?  I want to make sure I get this right before I
> make a change.  Of course, I would also just accept a patch to answer
> my question ;)
>

Yep, that's perfect... ;-) I would really like to provide you a patch
but ATM I'm a bit busy. :D

There are some example in the trac here:

http://trac.turbogears.org/turbogears/wiki/SimpleWidgetForm

ATM they are not download able and I think this is related to the site
migration... going to ping Kevin to fix this.

Ciao
Michele


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