On Wed, Mar 23, 2011 at 7:57 PM, Mike Orr <sluggos...@gmail.com> wrote: > > FormAlchemy > * Pylons: some usage. > * Pyramid:
Work just fine with pyramid: http://docs.formalchemy.org/pyramid_formalchemy/ > * Philosophy: automatically generate widgets for fields in > SQLAlchemy ORM objects. (Not usable outside this context.) Wrong: http://docs.formalchemy.org/formalchemy/ext/zope.html > * Renderer: built-in > * Validator: built-in > * Advantages: generate forms in few lines of code > * Disadvantages: less ability to customize forms than the > minimal/modular libraries Why ? Here is a template used with bottle.template: %for field in fieldset.render_fields.itervalues(): <div class="ligne_form"> <div class="label"> <label for="{{field.renderer.name}}">{{field.label_text or fieldset.prettify(field.key)}} :</label> </div> <div class="field"> {{!field.render()}} </div> </div> %end With pyramid_formalchemy you are able to use a specific template for each form: form.render(renderer='package:path/to/tpl.html') -- Gael -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.