Am 26.07.2013 18:35, schrieb Dennis Backhaus:
I cannot even pre-fill the form with a set value directly from the
template. I just changed my template code to this:

<form xmlns:py="http://genshi.edgewall.org/"; class="floatform"
py:attrs="w.attrs">
     <div py:if="w.error_msg" class="formerror" py:content="w.error_msg"/>
     <div py:if="w.help_msg" class="formhelp">
         <p py:content="w.help_msg"/>
     </div>
     <div py:replace="w.child.display(value=dict(last='enter this'))"/>
     <div py:for="button in w.buttons" class="field"
py:content="button.display()"/>
</form>

Dennis, this looks like the widget template. You don't want to touch that. Alessandro was talking about the page template specified in your @expose() decorator. Also, in your template code above, w.child is the Layout, not the Form. You need to pass the values to the Form itself.

-- Chris

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


Reply via email to