[google-appengine] Re: handling classes across multiple .py files

2008-12-11 Thread djidjadji
For point 1) Place the model class definitions in 1 or more separate .py files You can put more then 1 model class in a .py file when you use the multiple file approach eq. models.py # all model classes in one file or user.py forum.py comment.py And use import statements

[google-appengine] Re: handling classes across multiple .py files

2008-12-11 Thread lock
Hmmm, the message KindError: Kind 'Board' is not a subclass of kind 'Board' Makes me think that maybe you are defining two classes named 'Board' in each of your .py files. If this is the case, it's not what you want. I'd agree with djidjadji, it would be good practice to separate your

[google-appengine] Re: handling classes across multiple .py files

2008-12-11 Thread Vince Lupo
Thank. Works perfect on first try! I moved all class models to models.py and placed from models import * into each of the other .py files. On Thu, Dec 11, 2008 at 7:38 PM, djidjadji djidja...@gmail.com wrote: For point 1) Place the model class definitions in 1 or more separate .py files