Re: View (maybe middleware?) question

2007-05-31 Thread Chris Kelly
hmm, yeah, that's about what I am looking for (the site lang approach). I'll look into that some more. For this particular app, there are no stored user profiles (e.g. there is no logging in), so as much as I'd like to store this setting in a user profile, and requiring login, I can't guarantee t

Re: View (maybe middleware?) question

2007-05-30 Thread orestis
I've done something similar to this, putting the site language in the url. Basically you create a middleware process_request, that will take request.path and set it to something else. For example you might do: request.path = "/app/theme/view/" parts = request.path.split("/") request.path = "/

Re: View (maybe middleware?) question

2007-05-30 Thread Robert Coup
Chris Kelly wrote: > I am in the process of writing an app that will have a "theme" based > on if a subdirectory is specified e.g.: > > http://somesite.com/app/(theme)/abunchofviews/ > > basically, if they go to /app/bluetheme/register, it'll give them a > registration page with a blue theme heade

View (maybe middleware?) question

2007-05-30 Thread Chris Kelly
I am in the process of writing an app that will have a "theme" based on if a subdirectory is specified e.g.: http://somesite.com/app/(theme)/abunchofviews/ basically, if they go to /app/bluetheme/register, it'll give them a registration page with a blue theme header and footer (it looks up a th