What steps will reproduce the problem? 1. Create an admin module inside a directory in the controllers directory. 2. add routing like: maps.admin_map(map, controller='admin/admin', url='/admin') assuming your directory is called admin and your controller admin.py (don't forget your init.py in the admin directory. 3. click on any of your models to view in /admin
What is the expected output? What do you see instead? Expect to see model, instead get debug output with: TypeError: init() got an unexpected keyword argument 'autocommit' - this is caused due to bad routing - the modelname is misinterpreted by routes and is passed in as 'list' (ie, the action). Variations on the route like: maps.admin_map(map, controller='admin/admin', url='/admin/admin') also fail, as the urls from the 'front page' of formalchemy all point to /admin
What version of the product are you using? On what operating system? Running Pylons 9.7, sqlalchemy 0.5.2 (although same behaviour with 0.4.8), and formalchemy from SVN rev 750.
Please provide any additional information below. Really this is a routing issue, but I didn't manage to find any way around this other than moving the admin.py into the controllers directory. As we're likely to have quite a large admin panel, I wanted to keep admin related controllers in a separate directory.
Thanks
Comment #1
Posted on Apr 21, 2009 by Grumpy Cati've added a controller option in trunk
try: FormAlchemyAdminController(klass, controller='admin/admin') in admin.py
not sure this fix the issue..
Comment #2
Posted on Jun 16, 2009 by Swift Doggoing to mark this fixed since there has been no report of continuing problems
Status: Fixed