Adam Jones wrote:
> Neil Blakey-Milner wrote:
> > I'm doing a "technology preview" of what TurboGears may look like in the
> > near future - SQLAlchemy, Genshi, and Routes.  So far, I like it a lot -
> > Routes allows me to do some stuff I couldn't easily otherwise do.
>
> I hadn't heard anything about Routes being in the future for TG. My
> understanding was that the project is going to stick with CherryPy for
> the forseeable future. Do you have any pointers to what you saw that
> suggested this change? If this is just a bit of wishful thinking I
> agree with you. The rest of CherryPy is outstanding, but I prefer the
> explicit flexability of solutions like Routes. (That said CP can be
> very flexible, it just takes more cleverness than I like using in one
> place)

It will certainly be much easier (as in, a one-liner in your config:
"request.dispatch = RoutesDispatcher") to use Routes with CherryPy 3 if
you see fit. At the moment, you need to write your own
RoutesDispatcher*, but given its popularity, we may include a
RoutesDispatcher in the default distro of CP 3 in the near future.

Because CP 3 looks up the handler early and then calls it somewhere in
the middle of the request handling process, it's not going to ever be
*exactly* like Quixote; however, we're currently discussing ways to
come close (via some extension to the default dispatch) before CP 3
final. Until (and after) that time, you can use Routes with CP.


Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]

* A version for CP 2 is at:
http://www.aminus.org/blogs/index.php/fumanchu/2006/02/26/making_a_custom_cherrypy_request_class_f
It shouldn't be any more than upgrading that one a bit for CP 3 syntax;
I just haven't gotten around to it yet. If anyone would like to beat me
to the punch... ;)


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