On Fri, Dec 27, 2013 at 05:25:17AM -0800, puska wrote:
> action = lurl('./process_file')
>
> @expose('amandmani.templates.form2', inherit=True)
> def new(self, ident, *args, **kw):
> value = {
> 'ident': ident,
> }
> return dict(page='new', form=self.FileForm, title=ident,
> value=value)
> and is rendered by the following template snippet:
>
> <div id="form">
> ${form.display(value=dict(title='default title'))}
What about
${form.display(value=dict(title='default title',
ident=value['ident']))}
I'm not sure about the right-hand side of the = for ident but to me
you need to put the value in the display.
> The URL looks like http://localhost:8080/file/new/15
/new?ident=15 might work too.
- Craig
--
Craig Small (@smallsees) http://enc.com.au/ csmall at : enc.com.au
Debian GNU/Linux http://www.debian.org/ csmall at : debian.org
GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.