Why no Vagrant?
I forgot vagrant.
I can now put the following into any template:
Put that into any template, and the template engine will turn it into a nice two column table with all necessary labels and fields, Javascript validation, etc.Code:[form_table action="/admin/account/whatever"] [text name="username" required="1" jsValidate="checkUsername(this);"] [password name="password" required="1"] [text name="email" label="E-Mail Address" required="1" format="email"] [separator] [select name="category" required="1" data_source="table(account_categories)"] [boolean name="add_api" label="Add via API?" value="1"] [textarea name="description" size="500x200"] [submit] [/form_table]
This is more or less what WTForms does except it does server side validation instead of client side (IIRC, it's been over a year since I used it). Upon form submission it can return a partially filled in form with errors in the necessary fields. There are libraries that can add client side validation.
As far as I can tell the tools you use seem to do more or less the same as the tools everyone else uses, however we don't usually write our own, we happily leverage other people's work whereas you seem to write all your own tools.
[/QUOTE]
I'm moving towards NodeJS (javascipt in general) and Go.
To those who use WTForms and Jinja, learn Angular, and then give 0 fucks. These days I basically use Flask to handle a RESTfull API, and then use Angular to process all the visual font end stuff. Works way better than writing Flask templates and that kind of nonsense.
Agreed, I love Python but I'm (reluctantly) moving towards Node and js in general.
Rage9, are you writing angular stuff "by hand"? By that I mean that I often autogenerate form HTML from a WTForms class, which I can often autogenerate from a model (most forms aren't doing much special). Is it possible to autogenerate the angular code for these cases?
Get an OPTIONS call to your api to return a json serialized version of your model fields, then you can get angular to generate the form for any model and have client side validation automatically (min length, required etc, obviously uniqueness constraints will require something extra).
I find Angular a paradigm shift, you focus on state instead of the dom. It's not an easy ride but the result is worth it.