Hey there, 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.
One problem I'm experiencing is that the expose decorator is what ties the templating so nicely into things in TG. But its primary purpose (at least going by the name) is to expose the function to CherryPy - to set the .exposed attribute on the function. So, maybe this is another vote for using @view instead sometime in the future - @expose(expose=False) looks a bit weird. Until then, I'll just create another decorator to remove the .expose attribute on the methods. Also, maybe I'm just missing something obvious on how to deal with a problem like this: Let's say I have a blogging site with multiple web logs. The base is http://foo.bar/, and individual blogs are at http://foo.bar/unique-name/. Within the blog itself, there is /archives, which uses the common pattern /archives/2006/10/03/post-name to find a post. There is /feed.xml, and /categories, and so forth. The base mechanism in TG only gets me to the default function on the root controller, and doesn't seem to offer me a way to "restart" the processing on the remainder of the path. So: http://foo.bar/unique-name/archives/2006/10/03/post-name I only get to RootController, method default, where I can look up the blog name. I can't then forward the rest of the request to a controller that handles the blog portion (say, BlogController). With Routes, this is somewhat easier, as I can dispatch to exact functions with Routes. Any ideas? Neil -- Neil Blakey-Milner [EMAIL PROTECTED] http://mithrandr.moria.org/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

