Re: htmlfill.render question
Jonathan Vanasco <[email protected]> Thu, 12 Jul 2012 10:57:32 -0400
| Newsgroups | gmane.comp.python.formencode |
|---|---|
| Message-ID | <[email protected]> |
On Jul 12, 2012, at 10:37 AM, Chris Lambacher wrote: > Hi, > > htmlfill does not need to take a whole page as input and running htmlfill over a particular form is likely to give you the result you want (see below). However, your second suggestion sounds like a good one, and I would also consider a patch teaching htmlfill about more than one form. Chris- That's a great idea -- breaking the forms into separate functions. I'm using Mako under Pyramid with a validation routine that is very familiar to Formencode's usage under pylons, where a "reprint" of the entire template would be triggered. I could probably rewrite my support library ( https://github.com/jvanasco/pyramid_formencode_classic ) to handle partial forms , and slightly change the logic. I'll jump into formencode proper for an hour today though, and see if I can figure out a way to handle multiple forms. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/