Closed magicaltrevor closed 11 years ago
Which branch did you use (clone) master or beta1 ? I'll try with master, so far.
I have the same effect .. working on the fix
why the hell is this so messed up ....
Yeah I started to dig in to fix it and commit it up but there's a lot in there that is wrong. If you pass the model per your example it doesn't run the function, but if you do -m and model it does but passes an undefined variable. The rabbit hole went a bit deeper than I had time for at the time. I'll be happy to give it a go again when you get it patched up.
T
This was really deep down.. But I think I am through and (drive by) optimized some other issues ;)
Reason was that the changes in the Models backend going towards mongoDB really hit me here.
In the beta1_auth_and_relate I can build the blog now. I will merge the branches beta1_auth_and_relate and beta1 to have an equal (working) state. (and also merge down to master if everything works fine - biut I will wait for your feedback on this)
Thanks in advance for pointing me on this since I am really working on the mongo branch and had the SQLs as "just working" in mind.
Please try again.
checked it, and works also in the beta1. (but please recheck as well magicaltrevor)
Looks like it's working like a champ! I'll keep pushing ahead with my testing tomorrow but was able to successfully generate a migration.
Thanks for pointing me on this.
Following your example in the screen cast I can't seem to generate migrations.
vagrant@precise64:~/pow_devel/weblog$ python generate_controller.py post generate_controller: post -- created controller controllers/PostController.py -- generating TestCase... .//tests/controllers/TestPostController.py...(created) generated_controller in(0:00:00.000720)
vagrant@precise64:~/pow_devel/weblog$ python generate_scaffold.py post {'model': 'None', 'force': False, 'template': "/${context.get('template')}"} generate_scaffold for model: post -- created scaffold views/Post_list.tmpl -- created scaffold views/Post_show.tmpl -- created scaffold views/Post_create.tmpl -- created scaffold views/Post_edit.tmpl -- created scaffold views/Post_message.tmpl generated_scaffold in(0:00:00.001537)
vagrant@precise64:~/pow_devel/weblog$ python generate_migration.py post 2013-02-24 19:07:56,700 INFO sqlalchemy.engine.base.Engine PRAGMA table_info("apps") 2013-02-24 19:07:56,700 INFO sqlalchemy.engine.base.Engine () 2013-02-24 19:07:56,701 INFO sqlalchemy.engine.base.Engine PRAGMA foreign_key_list("apps") 2013-02-24 19:07:56,701 INFO sqlalchemy.engine.base.Engine () 2013-02-24 19:07:56,702 INFO sqlalchemy.engine.base.Engine PRAGMA index_list("apps") 2013-02-24 19:07:56,702 INFO sqlalchemy.engine.base.Engine () generated_migration in(0:00:00.000040)
vagrant@precise64:~/pow_devel/weblog$ ls migrations/ 00001_app.py 00002_versions.py init.py