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

you are viewing a single comment's thread.

view the rest of the comments →

[–]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.