[Lift] Re: Need access to session variables when about to shut down a session.

2009-02-05 Thread Alli
This works now smoothly. On Feb 5, 8:50 pm, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: On Thu, Feb 5, 2009 at 1:43 PM, David Pollak feeder.of.the.be...@gmail.comwrote: On Thu, Feb 5, 2009 at 12:13 PM, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: David, I'm a little

[Lift] Re: Need access to session variables when about to shut down a session.

2009-02-04 Thread Alli
On Feb 4, 1:19 am, Alli allilis...@gmail.com wrote: Thanks David, I'll get it tomorrow from scala-tools.org and finish up the app. URL will behttp://www.resizemypics.neta free service for people to resize their pictures and view them online. Just a simple, yet convenient service. Gives me a chance

[Lift] Re: Need access to session variables when about to shut down a session.

2009-02-04 Thread Alli
:43 PM, Alli allilis...@gmail.com wrote: Hey David, Two questions this time: I've been playing with your commit earlier today and cleaning up SessionVar's. I got: object sessDirHash extends SessionVar[String]() {  def cleanUpFunc(sess: LiftSession) = {   println(Got hash

[Lift] Re: Need access to session variables when about to shut down a session.

2009-02-04 Thread Alli
, Feb 4, 2009 at 12:43 PM, Alli allilis...@gmail.com wrote: Hey David, Two questions this time: I've been playing with your commit earlier today and cleaning up SessionVar's. I got: object sessDirHash extends SessionVar[String]() {  def cleanUpFunc(sess: LiftSession) = {   println

[Lift] Need access to session variables when about to shut down a session.

2009-02-03 Thread Alli
Evening, During the lifetime of a session, the session may have uploaded bunch of files and these need to be able to be destroyed/unlinked when a session ends. When user uploads a file it's parent dir is determined by the session unique ID and the remote address of the uploader. The name is

[Lift] Re: Need access to session variables when about to shut down a session.

2009-02-03 Thread Alli
Makes a lot of sense, thanks David. Always amazes me how good and clean the design of lift is. On Feb 3, 9:49 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Feb 3, 2009 at 1:06 PM, Alli allilis...@gmail.com wrote: Evening, During the lifetime of a session, the session may

[Lift] Potential LiftRules dispatch issue.

2009-01-27 Thread Alli
I wrote a frontend so e.g. localhost:8080/picture/blah.jpg encapsulates /tmp/blah.jpg and will return an InMemoryResponse() with blah.jpg as content. I have something like the following: LiftRules.dispatch.append { case r @ Req(picture :: fileName :: Nil, , GetRequest) = () = ... } Thing

[Lift] Re: Potential LiftRules dispatch issue.

2009-01-27 Thread Alli
Thanks chaps, can't believe i didn't spot it :). Cheers, Alfred On Jan 27, 11:48 pm, Tim Perrett he...@timperrett.com wrote: Change the req to this: Req(picture :: fileName :: Nil, jpg, GetRequest) That should then work for you Cheers, Tim On Jan 27, 11:39 pm, Alli allilis...@gmail.com

[Lift] Re: Potential LiftRules dispatch issue.

2009-01-27 Thread Alli
Is it possible to make the extension a wild card somehow, e.g. if i want jpg,png,gif,bmp ? On Jan 27, 11:50 pm, Alli allilis...@gmail.com wrote: Thanks chaps, can't believe i didn't spot it :). Cheers, Alfred On Jan 27, 11:48 pm, Tim Perrett he...@timperrett.com wrote: Change the req

[Lift] Re: Potential LiftRules dispatch issue.

2009-01-27 Thread Alli
Thanks, will definitely order a PDF or your book when it's out. Cheers, Alli On Jan 27, 11:56 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Jan 27, 2009 at 3:53 PM, Alli allilis...@gmail.com wrote: Is it possible to make the extension a wild card somehow, e.g. if i want

[Lift] Re: [ANN] Lift 0.10

2009-01-15 Thread Alli
Congrats, keep up the good work! On Jan 15, 7:52 am, Viktor Klang viktor.kl...@gmail.com wrote: Awesome guys! Simply and stunningly awesome! On Thu, Jan 15, 2009 at 2:57 AM, Matt Harrington mbh.li...@gmail.comwrote: Hats Off to you all.  Looking forward to 1.0 and the books! Matt --

[Lift] Re: Writing data to the HttpServletResponse

2009-01-11 Thread Alli
- disposition, content-length etc) and the write the file to the response 2) Do some stuff in Boot.scala to hook my new response in when a specific URL is being used e.g. /downloadimage. Cheers, Alli On Jan 11, 12:08 pm, Tim Perrett he...@timperrett.com wrote: Alli, Mark is correct - I'd create

[Lift] Re: Writing data to the HttpServletResponse

2009-01-11 Thread Alli
-Type, text/plain) :: headers,   Nil, code)      }    } from TextResponse.scala. Look at InMemoryResponse or possibly   StreamingResponse in Response.scala. Marc On 11/01/2009, at 4:27 AM, Alli wrote: Hey, I have been searching the list and also the liftweb.net wiki and haven't

[Lift] Re: Writing data to the HttpServletResponse

2009-01-11 Thread Alli
instead of the view in order to return my own LiftResponse instead of a NodeSeq back to the client. Cheers, Alli On Jan 11, 12:37 pm, Marius marius.dan...@gmail.com wrote: Alli are you using SHtml.fileUpload ... or you want to upload it manually processing everything in your dispatch? .. I'd

[Lift] Re: Writing data to the HttpServletResponse

2009-01-11 Thread Alli
: Alli, Yes, I think your want to go with a DispatchPF to handle the destination of the POST request from your Flash component. DispatchPF {   case r @ Req(upload :: thing :: Nil, , PostRequent) if r.uploadedFiles.exists(_.name == upload) =     () = {     val

[Lift] Re: Lift compiles with 2.7.3.RC2

2009-01-10 Thread Alli
This is fabulous news that you guys are almost at the first release candidate for 1.0. Is there any estimate as when 1.0 will be released and is there any roadmap? I had a look at the book that is in progress and it looks very promising. Good work chaps. Cheers, Alfred On Jan 10, 2:50 pm,