right now, at my workplace we are still on deform, but explore the possibility of custom widgets. E.g. we build widgets that will take a sqlalchemy model instance and render multiple form items to edit it. This does still feel like too much code for what we want to achieve, but there's potential to factor out boilerplate code (like wrapping all form items in a mapping). Of course this means that select boxes or text inputs are created in more than one place/template, but then again, this kind of control was why we started down that road. We don't have custom widgets yet, that are as complex as comprising sequences, and i guess at this point we will look for alternatives again.
On Thu, Jul 26, 2012 at 10:53 PM, Randall Leeds <[email protected]> wrote: > > On Jul 25, 2012 2:32 PM, "Robert Forkel" <[email protected]> wrote: >> >> You are right. There are ways to customize the HTML generated by >> deform - and I'm using all the mechanisms you enumerated and quite >> like it. But there certainly are things that are hard to achieve. E.g. >> if you don't like the approach of pretty much all form items being >> generated as li elements within ul containers you'd have to replace >> quite a few templates, or if you want some controls being rendered >> side by side, others below each other, or if you want custom sequence >> widgets. But possibly these things are hard with other form libraries >> as well. > > I have experienced some of this pain. Please let us know if you find > compelling alternatives. > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" 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/pylons-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
