dynamic forms generation

Discussion in 'Python' started by andrea crotti, Apr 16, 2013.

  1. 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?
    andrea crotti, Apr 16, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Me2

    Forms Authentication - Key Pair Generation

    Me2, Sep 29, 2003, in forum: ASP .Net Security
    Replies:
    1
    Views:
    200
  2. Eric
    Replies:
    2
    Views:
    501
  3. John W. Long

    HTML Generation (Next Generation CGI)

    John W. Long, Nov 22, 2003, in forum: Ruby
    Replies:
    4
    Views:
    331
    John W. Long
    Nov 24, 2003
  4. Wayne Werner

    Re: dynamic forms generation

    Wayne Werner, Apr 18, 2013, in forum: Python
    Replies:
    0
    Views:
    109
    Wayne Werner
    Apr 18, 2013
  5. andrea crotti

    Re: dynamic forms generation

    andrea crotti, Apr 19, 2013, in forum: Python
    Replies:
    0
    Views:
    117
    andrea crotti
    Apr 19, 2013
Loading...

Share This Page