In addition to what Vincent noted, I also like to do the following: |-- models |-- __init__.py |-- _core.py |-- api.py
_core.py -- anything that is shared across the other files in the package. i.e. a base class, mixins, etc api.py -- although I still import everything into __init__.py , I like to have an 'api' namespace to contain any of the various functions for the package that other packages might interact with. I do this in-addition-to what Vincent recommended. It's just ended up easiest for me. In terms of Wyatt's recommendation. i'm lazy and don't keep the model completely separate -- one day I will. BUT, I do keep pyramid about of the model, so it can be used by non-pyramid packages (and it often is). I STRONGLY recommend that you keep anything that has to do with Pyramid out of the /model namespace. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/groups/opt_out.
