On Fri, Dec 26, 2008 at 12:39 PM, Chen Houwu <[email protected]> wrote:
>
> Current I am develop some web application with TG2, but I can't solve
> the follown problem:
>
> 1. How to use FileFields?
This works exactly was any other field, is your problem on the
controller or the rendering part?
if it's at the controller part you need, a "special" controller to
upload the file, go a search of the group as several implementations
have been posted. Including mine.
> 2. How to give a TextField a default value?
>
you pass the value at render time. For example if you have a widget,
named "widget" and it has a "case_id" field the following code will
set it to "
${tmpl_context.widget(dict(case_id=value))}
> I can't find any example about them.
> Event from the source code, I can't get suffient clue.
>
> Thanks very much.
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---