I'm a flexible -1 on this. I don't think we need a different  
command... I also think there would be implementation difficulties  
with the current code (specifically extending __init__.py). I'm also  
not inclined to lead people down the path of one-controller-class-per- 
file, which I think is unnecessary and unpythonic.

The reason I like the "root" module name is because it reflects that  
that is where the root of the app is. That isn't truly critical,  
though... all that really matters is that  
yourproject.controllers.Root can be found.

(BTW, I do use tgbig sometimes. I generally have a good idea in  
advance if I'm starting on something that will more comfortably fit  
in multiple modules. I do certainly agree that the UI around using  
tgbig is not ideal and we should seek to make it a bit friendlier. It  
might require some additions/changes to PasteScript.)

Kevin

On Jun 15, 2006, at 10:11 AM, gasolin wrote:

>
> I suggest to add a command "addController " to replace the tgbig
> template.
>
> [Usage]
> $ tg-admin addController
> Enter controller name:Magic
> Enter entry name [magic]:
>
> (addController  command is the alias for "$tg-admin quickstart -t
> addController")
>
> [Command Behavior]
> add /controllers/__init__.py (if not exist)
> add /controllers/+entry+ (magic)
> append
> from +package+.controllers.+entry+ import +controller+ (from
> demo.controllers.magic import Magic)
> +entry+ = +controller +() ("magic=Magic()")
>
> [Reason]
> Does anyone use tgbig template?
>
> The current tgbig template is derived from tg basic template , and
> will:
>
> remove controllers.py
> add controllers/__init__.py
> add controllers/root.py
>
>
> I find when I use tgbig template.
> It confused me that "controllers.py" is moved in "controllers" folder
> and is renamed to "root.py",
> it breaks my experience to handle controllers.
> (also, in controllers folder we also have to use full template
> path....bla...bla... that's a lot to acclimatise),
>
> "root.py" in controllers is not as obvious as "controllers.py" in top
> heirachy.
> And the 'contollers' folder is not such useful because I still need to
> figure out what should I do to add another controllers. So why not  
> make
> it implicit?
>
>
> I think "Fast Track style" structure is pretty reasonable.
>
> keep controllers.py, append entry to RootController
> add /controllers/__init__.py
> add /controllers/custom controller
>
> Now it looks more helpfull :)
>
> Is this possible?
>
> --
> Fred
>
>
> >


--
Kevin Dangoor
TurboGears / Zesty News

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com




--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to