Hi, Thanks for this addition, I just bumped into a similar problem and found solution immediately from here!
- Vesa On 5 marras, 01:18, David Pollak <feeder.of.the.be...@gmail.com> wrote: > What about: > > LiftRules.liftRequest.append { > case Req("other_stuff" :: _, _, _) => false > > } > > If you've got a bunch of different paths: > > LiftRules.liftRequest.append { > case Req("other_stuff" :: _, _, _) => false > case Req("other_path" :: _, _, _) => false > case Req("api_stuff" :: _, _, _) => false > case Req("special" :: _, _, _) => false > > > > > > } > On Wed, Nov 4, 2009 at 12:44 PM, ben <b...@primrose.org.uk> wrote: > > > Just a note to the committers if they read this : > > > I did find it really hard to work out how to get this working, just > > couldn't find anything on google. I also looked at the LIftRules > > source code, and just couldn't see anything obvious. > > > I just altered LiftRules.scala on my local version of 1.1-M6 to add > > the following method : > > > def bypassLiftServletFilterChainFor(uriList: List[String]) { > > uriList.foreach(uri => { > > liftRequest.append({ > > case r if (r.path.partPath match > > { > > case uri :: _ => true case _ => false > > }) => false > > }) > > }) > > } > > > It just occurs to me (and maybe its only me !) that some of the things > > people want to do are not overly obvious to the newbie, and having > > little functions such as the above are easy to add to the codebase, > > and may go a long way to making things like this a bit easier to work > > out how to do :) > > > Cheers, > > Ben > > -- > Lift, the simply functional web frameworkhttp://liftweb.net > Beginning Scalahttp://www.apress.com/book/view/1430219890 > Follow me:http://twitter.com/dpp > Surf the harmonics --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---