Wouldn't 'admin.py' actually be a controller?
Anyhow to try and dispel FUD over supposed directory structure I'll submit the
following mock-up:
my_web_project/
app/
apis/
tag_cloud.py
tag_utils.py
controllers/
controller.py
user_controller.py
login_controller.py
models/
user_model.py
tags_model.py
static/
css/
images/
javascript/
views/
login.kid
entry.kid
tag_cloud.kid
config/
dev.cfg
prod.cfg
setup.py
tests/
user_test.py
login_test.py
>
> From: "Kevin Dangoor" <[EMAIL PROTECTED]>
> Date: 2006/03/08 Wed PM 01:47:44 GMT
> To: [email protected]
> Subject: [TurboGears] Re: bike shed #2: controllers.py vs. controllers
> directory
>
>
> On 3/7/06, Jeff Marshall <[EMAIL PROTECTED]> wrote:
> >
> > +1 for the controllers/ and models/ subdirectory hierarchy. Every time
> > I create a new TG project, the first thing I do is create a
> > controllers/ subdirectory. I've only had one project that was small
> > enough that I stayed within the single controllers.py file.
>
> For a contrast: the reason quickstart looks the way it does is that I
> figured that one would likely start organizing on application terms as
> they expand beyond one controllers file. So, rather than creating a
> controllers package, one might add an "admin.py" or the like to their
> main project package... then, if that starts to get to be a bit much,
> refactor into some other set of packages that makes sense for the app.
>
> I bring that up for background, not to convince people or say that I'm
> set on that.
>
> When you create a controllers package, what's the name of the module
> inside that package that you use when you start writing your actual
> controllers classes?
>
> Kevin
>
>
>
-----------------------------------------
Email sent from www.ntlworld.com
Virus-checked using McAfee(R) Software
Visit www.ntlworld.com/security for more information
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---