On Jun 22, 2006, at 9:16 PM, samuraisam wrote:
>
> Alright, if this hasn't been fixed I'm going to start fixing it.
> How do
> I update the turbogears egg from the latest snapshot? Also, what's the
> SVN address for the 1.0 branch? I would like to make default (when
> creating an instance of a widget) to be callable at render/display
> time. For instance, from what I can tell I have to create an entirley
> new widget and override update_params() _just_ to set defaults at
> runtime, and it's a *major* pain.
default is just a fallback value if no value is presented. The
equivalent at render time is just the value you pass in. In other words:
tf = TextField(name="test", default="Hi!")
print tf.render("Bye!")
The second line will print the text field with a value of "Bye!". The
whole purpose of default is to handle the case where no value is
passed in.
In answer to your question, here's the 1.0 branch:
http://www.turbogears.org/svn/turbogears/branches/1.0/
You should be able to just to "python setup.py develop" in that
checkout to start working with the latest 1.0 code.
Kevin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---