Jorge Godoy wrote:
> > I also think the quickstart template itself could use some improving,
>
> Such as... ?
>
Well my main gripes were that it uses one controller module, instead of
a controllers package. I tried "subtemplating" TGBig, but I wasn't able
to figure out how to have my template actually subclass the TGBig class
itself, so I could inherit all of the controllers.py handling. I
suppose in retrospect I could've done something like "from
turbogears.commands.quickstart import TGBig". This might be better than
just Paste's inheritance, because then you can do something like "class
MyStart(TurboGearsTemplate)" and then call inherited methods or ignore
them as you like. It might be even better to allow more granularity, so
a subclass can choose exactly which options it supports or doesn't
support.
The only other differences really is that Kid is set to output
xhtml-strict by default, the start script supports FastCGI, SCGI,
mod_python, and PyChecker, and the default kid templates are more
barebones. You can pass options to the start script through environment
variables, though I didn't have much luck with that through mod_python.
I might make some wrapper function for the os.environ.get() calls that
substitutes it with mod_python's req.get_options() if it's available.
If any of you are curious, this is how I have my apache configuration
set up to use the test application. The application is deployed to
site-packages.
<VirtualHost [...]:80>
<Location /mytgtest>
SetHandler python-program
PythonOption cfg /[...]/mytgtest.cfg
PythonOption wsgi.application cherrypy._cpwsgi::wsgiApp
PythonHandler modpython_gateway::handler
PythonFixupHandler mytgtest.start::start_mod_python
PythonDebug On
</Location>
</VirtualHost>
Also, this ticket really needs handling:
http://trac.turbogears.org/turbogears/ticket/1014 . I ran into the same
problem at first.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---