Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43666 > unrolled thread

dynamic forms generation

Started byandrea crotti <andrea.crotti.0@gmail.com>
First post2013-04-16 11:21 +0100
Last post2013-04-16 11:21 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  dynamic forms generation andrea crotti <andrea.crotti.0@gmail.com> - 2013-04-16 11:21 +0100

#43666 — dynamic forms generation

Fromandrea crotti <andrea.crotti.0@gmail.com>
Date2013-04-16 11:21 +0100
Subjectdynamic forms generation
Message-ID<mailman.662.1366107694.3114.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

We are re-designing a part of our codebase, which should in short be
able to generate forms with custom fields.

We use django for the frontend and bottle for the backend (using CouchDB
as database), and at the moment we simply plug extra fields on normal
django forms.

This is not really scalable, and we want to make the whole thing more
generic.

So ideally there could be a DSL (YAML or something else) that we could
define to then generate the forms, but the problem is that I'm quite
sure that this DSL would soon become too complex and inadeguate, so I'm
not sure if it's worth since noone should write forms by hands anyway.

Between the things that we should be able to do there are:
- dependent fields
- validation (both server and client side, better if client-side
  auto-generated)
- following DRY as much as possible

Any suggestions of possible designs or things I can look at?

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web