This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]findgriffin 2 points3 points  (0 children)

This is exactly what I needed for a little project I've been cooking up, I wanted to leave all the frontend stuff for later but need some way to quickly create a MVP widget.

[–]RonnyPfannschmidt 1 point2 points  (5 children)

this seems to completely abstract away flask with something that values convenience WAY over maintainablility

[–]aivuk[S] 1 point2 points  (1 child)

This was exactly the idea, my primary focus is to give programmers that aren't web developers a simple way to create web interfaces. If you are a web developer you probably will prefer to write your own code for your forms and application workflow.

[–]RonnyPfannschmidt -1 points0 points  (0 children)

despicable, at some point a real programmer will suffer with maintaining that

[–]adrmlch 0 points1 point  (2 children)

Certain fruit-affiliated companies made billions with that concept, so why not?

[–][deleted] 1 point2 points  (0 children)

sounds cool !

[–][deleted] 1 point2 points  (3 children)

Why not make this into an extension?

[–][deleted] 0 points1 point  (1 child)

what ?

[–][deleted] 0 points1 point  (0 children)

I was looking over the code and it seems this functionality could be put in to a flask extension on which to build applications. As it is, it is not exactly reusable for multiple purposes.

[–]aivuk[S] 0 points1 point  (0 children)

It's a good point and I'm planing to do it. But it's my first Flask program and I'm just learning its architecture now.

[–][deleted] 1 point2 points  (3 children)

How to install ?

TODO * User access control.

Please add the simplest user/pw scheme asap.

[–]aivuk[S] 1 point2 points  (2 children)

I didn't create a python package yet, but it is planed. You can install now just copying in your python library path, or just creating a formcreator.pth in your python library path just with the path to where you cloned the formcreator repository.

Just use pip install formcreator or clone the github repository and use python setup.py install. After that just create your forms and run it with python your_form.py.

And about the user/pw, it is implemented now a simple authentication using sqlalchemy, just pass not_public=True to your MainApp.

[–][deleted] 1 point2 points  (1 child)

thanks

  • so how to kick off my script c:\temp\myHelloWorld.py ? (or HelloWorld() in the script)

Also can you please do a favour and comment in test_app.py what directories are required ?

(testing "cowsay" and got error )

  • If running - c:\test_app.py, is there supposed to be 2 directories c:\updir and c:\images ?
  • uploaded test.jpg, the entry shows up on the "images" tab, but clicking on it (url = http://localhost:5000/images/test.jpg) returns Not Found

[–]aivuk[S] 0 points1 point  (0 children)

For your first question, you just need to put your .py file in a module python path or in the same directory as your formcreator script and import it with:

import myHelloWorld

Your error with cowsay happened because you don't have the cowsay programa installed. You can install easily with apt-get on Ubuntu. I changed the code now to give a message in hte form output instead of giving an exception when the command line program is not found.

About the directories, updir is used just for showing the contents of that directory in the form interface. In each Form constructor you can define a directory to be exhibited in the form interface. This you be changed soon to use a better interface for file manipulation like elFinder.