> > P.S.: /me wonders if TurboGears has better/clearer deployment mechanisms.
>
> That's worth looking into.  Let us know if there are any ideas we can steal.

Unfortunately we are pretty much in the same boat with deployment.
The system is better documented, but there is a nifty cgi hack
documented to restart your application if it's not up for any reason.
 For some configuration's that's very helpful.

Even though the start up scripts are different, a lot of the basics of
what you should do are the same.   Proxying behind apache is generally
worth it, and that's all the same.

> I'm reading the TurboGears book now and see some things I'd like to
> port to Pylons (@expose but just for the dict rendering, not for
> making methods public; and maybe a full-stack application template
> with auth and database and templates preinitialized).

I really like the multi-format feature of @expose, so you can just
return a dictionary which gets rendered as a web page, or a JSON
object, or XML/RSS, whatever the user agent requests (and whatever you
allow).

And that should be pretty simple to steal.   The @expose decorator
just wraps your function and returns a string at the end.  If you just
want to render dictionaries it's pretty trivial, and if you want the
multi-format returns, there's a bit of messy code in @expose, but it
wouldn't be at all hard to rip out the cherrypy specific bit and just
steal that code.

>  But there are
> other things they seem to handle in an ad-hoc manner that paster
> provides for us, like the application startup file.

Yea, we've got to do more paste integration in general.   This is
actually pretty high on our priority list. ;)

-- 
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to