[Lift] Re: catch a URL

2009-10-23 Thread Jeppe Nejsum Madsen
Chris Lewis burningodzi...@gmail.com writes: Hi list, I'm working on an appengine app, and need to store some user information. I authenticate the user with their google account, and I need to create their local entity only if it's their first time logging in. When a user logs in via

[Lift] Re: catch a URL

2009-10-23 Thread Chris Lewis
Thanks for that link, however it doesn't seem like rewrite rules fire for paths that are mapped in the SiteMap. Can anyone confirm that? I could have the redirect point to a non-existing URL, and do logic + rewrite there. I'm curious though, are rewrites considered if the URL matches a page

[Lift] Re: catch a URL

2009-10-23 Thread Timothy Perrett
Chris, SiteMap deals with what pages you are saying should be visible. Here, I term page as the physical xhtml file that represents the stuff the users sees - its a file on your system. Rewritten URLs dont need to feature in SiteMap because lift is clever enough to know that the page you

[Lift] Re: catch a URL

2009-10-23 Thread Chris Lewis
Hi Tim, I don't specifically want to rewrite anything. What I want is to be able to run some initialization code when a specific page is requested. As I said, I'm writing a google app engine app that uses google's authentication service to auth users (using their google account). I'm

[Lift] Re: catch a URL

2009-10-23 Thread Timothy Perrett
Ah. In that case, does this help: Menu(Loc(Some, List(some,page), Some, EarlyResponse(() = { // do some response here, // return Empty if you dont want // a response but a filter style // intercept. Empty }) )) Does that

[Lift] Re: catch a URL

2009-10-23 Thread Jeppe Nejsum Madsen
Timothy Perrett timo...@getintheloop.eu writes: Ah. In that case, does this help: Menu(Loc(Some, List(some,page), Some, EarlyResponse(() = { // do some response here, // return Empty if you dont want // a response but a filter style //

[Lift] Re: catch a URL

2009-10-23 Thread Chris Lewis
Great suggestions - thanks guys! Jeppe Nejsum Madsen wrote: Timothy Perrett timo...@getintheloop.eu writes: Ah. In that case, does this help: Menu(Loc(Some, List(some,page), Some, EarlyResponse(() = { // do some response here, // return Empty if you dont