pombreda / formalchemy

Automatically exported from code.google.com/p/formalchemy
MIT License
0 stars 0 forks source link

models doesn't get load in admin #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just follow the tutorial at http://docs.formalchemy.org/ext/pylons.html

What is the expected output? What do you see instead?
To have an admin section of the site in which you can modify all the classes in 
your model 

What version of the product are you using? On what operating system?
Formalchemy 1.1

Please provide any additional information below.

Just following the tutorial i cannot get a working admin due to model issue: it 
does not read
the classes in the model, so i get a white page in which <h1>Model</h1> is 
written. If i put
a single class as a model in AdminControllerBase it works, but i can only see 
the class i
added.

Original issue reported on code.google.com by vincenzo...@gmail.com on 4 Jan 2009 at 11:14

GoogleCodeExporter commented 9 years ago
FA does not currently recursively scan the model/ package, although this is 
under 
consideration (see #42).  So if you have your models in model/foo.py, 
model/bar.py, 
etc., one workaround is in model/__init__.py add

from foo import *
from bar import *

Original comment by jbel...@gmail.com on 5 Jan 2009 at 3:44