Re: [Lift] New logging code

2010-02-15 Thread Heiko Seeberger
On 14 February 2010 20:10, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Makes sense, and that was actually close to what I had initially: The Logger trait was called LiftLogger, but this clashed with the current LiftLogger. This name (Logger in current code) probably doesn't matter too much

Re: [Lift] New logging code

2010-02-15 Thread Jeppe Nejsum Madsen
On Mon, Feb 15, 2010 at 9:17 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: On 14 February 2010 20:10, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Makes sense, and that was actually close to what I had initially: The Logger trait was called LiftLogger, but this clashed with the

Re: [Lift] New logging code

2010-02-15 Thread Heiko Seeberger
On 15 February 2010 09:45, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Even if (probably) not needed, we should try to name it the best possible way. Changing now causes no pain at all, but later ... you know. Agreed. Suggestions? I already made mine, just to make sure everyone has a

[Lift] Lift Record

2010-02-15 Thread Timothy Perrett
Debasish just posted this: http://debasishg.blogspot.com/2010/02/why-i-dont-like-activerecord-for-domain.html Interesting feedback especially regarding the current design of Record... Cheers, Tim -- You received this message because you are subscribed to the Google Groups Lift group. To post

Re: [Lift] Nginx, Jetty multiple contexts

2010-02-15 Thread Jeppe Nejsum Madsen
On Mon, Feb 15, 2010 at 12:40 AM, Timothy Perrett timo...@getintheloop.eu wrote: The context header stuff was removed because it was tottlay broke ;-) Check LiftRules for the context calculator - you should be able to dynamically set it from whatever value you want. I'll post an example

Re: [Lift] Nginx, Jetty multiple contexts

2010-02-15 Thread Timothy Perrett
In boot: LiftRules.calculateContextPath = () = Full(/yourcontext) Im not using NGINX for that particular application as we use windows at work, so I cant share a config file. However, if you post what you have i'll try to wield my NGINX jedi skillz! Cheers, Tim On 15 Feb 2010, at

[Lift] Re: thread [Image upload and serving example]

2010-02-15 Thread Luke Nezda
Hello - I attempted to reply to the thread with subject Image upload and serving example initiated by David Pollack on Nov. 30, 2009 via the Google Groups UI and inadvertently sent mail directly to David because there was only a Reply to author link, no plain Reply link -- oops. (He politely

[Lift] Error processing SHtml functions withing nested NodeSeq/Scala code

2010-02-15 Thread soumik
Hi, I'm using 1.1-SNAPSHOT lift release and am experiencing strange behaviour when trying to output a NodeSeq formed from nested NodeSeq Scala code. To highlight the problem let me show you the code I'm trying to execute: --- def listFilesInDir(dirName:String):

Re: [Lift] New logging code

2010-02-15 Thread Jeppe Nejsum Madsen
On Mon, Feb 15, 2010 at 9:52 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: On 15 February 2010 09:45, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Even if (probably) not needed, we should try to name it the best possible way. Changing now causes no pain at all, but later ... you

Re: [Lift] Nginx, Jetty multiple contexts

2010-02-15 Thread Jeppe Nejsum Madsen
On Mon, Feb 15, 2010 at 12:29 PM, Timothy Perrett timo...@getintheloop.eu wrote: In boot:    LiftRules.calculateContextPath = () = Full(/yourcontext) Oh, that was easy :-) I'll try it out late today Im not using NGINX for that particular application as we use windows at work, so I

Re: [Lift] Nginx, Jetty multiple contexts

2010-02-15 Thread Timothy Perrett
What's with the ERB markup? BTW, im confused about why you don't handle this host selection thing in the lift code and just read the host name? What is the use case here? A mobile site or something similar? Also, now seeing that you want to work on a request by request basis, im not sure

Re: [Lift] Lift Record

2010-02-15 Thread Timothy Perrett
Sounds like a good plan Ross - have you any specific suggestions about how best to untangle things? Marius - your thoughts as the own of Record? Cheers, Tim On 15 Feb 2010, at 15:03, Ross Mellgren wrote: FWIW, I agree mostly completely, and when I was writing the integration I didn't like

Re: [Lift] Nginx, Jetty multiple contexts

2010-02-15 Thread Jeppe Nejsum Madsen
On Mon, Feb 15, 2010 at 4:27 PM, Timothy Perrett timo...@getintheloop.eu wrote: What's with the ERB markup? Sorry, lazy cut'n paste from a Chef template. BTW, im confused about why you don't handle this host selection thing in the lift code and just read the host name? What is the use case

[Lift] Re: Back in the (Goat) Saddle

2010-02-15 Thread Peter Robinett
Hi David, Goat Rodeo sounds cool and your blog post was very interesting. Just to ask, do you see Goat Rodeo relating to Lift at all (sharing ideas? code?) or do you see it as something that will take on a life of its own completely divorced from Lift? Peter On Feb 14, 1:15 am, David Pollak

[Lift] Re: Error processing SHtml functions withing nested NodeSeq/Scala code

2010-02-15 Thread Marius
I don't think the cause is in SHtml. I tried your code from a snippet and from a Comet actor and there was no lock whatsoever. But I did use lift 2.0-SNAPSHOT. can you try with 2.0-SNAPSHOT ? Br's, Marius On 15 feb., 15:20, soumik soum...@gmail.com wrote: Hi,  I'm using 1.1-SNAPSHOT lift

[Lift] Re: Lift Record

2010-02-15 Thread Marius
I hardly own the Record :) ... as I stated with other occasions I'm not a fan of ORM either :) ( I'm also not a fan of annotated POJO crap which claim purity but they are polluted with annotations. ) I didn't follow too closely the couch DB implementation so I don't have a formed opinion on it.

Re: [Lift] Re: Lift Record

2010-02-15 Thread Ross Mellgren
On Feb 15, 2010, at 1:56 PM, Marius wrote: The author says something like The moment you define a domain abstraction as being statically dependent on a persistence implementation, you lose the ability to reuse it in other contexts.. I disagree completly. I can think of a couple of options:

[Lift] Re: New logging code

2010-02-15 Thread Indrajit Raychaudhuri
On Feb 15, 1:52 pm, Heiko Seeberger heiko.seeber...@googlemail.com wrote: On 15 February 2010 09:45, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Even if (probably) not needed, we should try to name it the best possible way. Changing now causes no pain at all, but later ... you know.

Re: [Lift] New logging code

2010-02-15 Thread Indrajit Raychaudhuri
On 15/02/10 7:46 PM, Jeppe Nejsum Madsen wrote: On Mon, Feb 15, 2010 at 9:52 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: On 15 February 2010 09:45, Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Even if (probably) not needed, we should try to name it the best possible way.

Re: [Lift] New logging code

2010-02-15 Thread Jeppe Nejsum Madsen
On Mon, Feb 15, 2010 at 9:57 PM, Indrajit Raychaudhuri indraj...@gmail.com wrote: http://github.com/dpp/liftweb/blob/add01980aa81875617f38260d710e0558c7ae1b1/framework/lift-base/lift-common/src/main/scala/net/liftweb/common/Logging.scala One issue remains, which I don't know how to handle (if

Re: [Lift] Is this a bug?

2010-02-15 Thread David Pollak
On Mon, Feb 15, 2010 at 1:23 PM, Meredith Gregory lgreg.mered...@gmail.comwrote: Dear Lifted, Here are some steps to create the observed behavior. - Create an instance of the lift basic archetype put the following script into mklift.sh #! /bin/sh mvn archetype:generate -U

[Lift] Re: Cached CSS (and Javascript?) issue

2010-02-15 Thread Alex Black
There is no proper API to see when file names are changed unless we poll. I prefer to have  LiftRules function that by default takes a value generated at startup. User's can override it to generate the token more frequently depending on their use-case. I was interested in less-frequently (not

[Lift] Re: Cached CSS (and Javascript?) issue

2010-02-15 Thread Alex Black
We don't seem to have this problem with images.. Could this have to do with the fact that the CSS files and javascript are served out of the WAR file, whereas our images are served by a separate Jetty context? On Feb 13, 3:35 am, Marius marius.dan...@gmail.com wrote: On 12 feb., 22:56, Alex

Re: [Lift] Is this a bug?

2010-02-15 Thread Meredith Gregory
Dear David, Thanks! So, what's the recommended way of building a headless RESTful webservice that takes parameters? Best wishes, --greg On Mon, Feb 15, 2010 at 1:26 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Feb 15, 2010 at 1:23 PM, Meredith Gregory

Re: [Lift] Is this a bug?

2010-02-15 Thread Meredith Gregory
P.S. By headless, i mean no browser involved... On Mon, Feb 15, 2010 at 1:34 PM, Meredith Gregory lgreg.mered...@gmail.comwrote: Dear David, Thanks! So, what's the recommended way of building a headless RESTful webservice that takes parameters? Best wishes, --greg On Mon, Feb 15,

Re: [Lift] Is this a bug?

2010-02-15 Thread Jeppe Nejsum Madsen
On Mon, Feb 15, 2010 at 10:34 PM, Meredith Gregory lgreg.mered...@gmail.com wrote: Dear David, Thanks! So, what's the recommended way of building a headless RESTful webservice that takes parameters? You could use normal url parameters:

Re: [Lift] Is this a bug?

2010-02-15 Thread Meredith Gregory
Dear Jeppe, Thanks! A quick test shows that curl -o test.txt http://localhost:8080/biosimilarity-services/grammar/banana-cream-pie?file=file:// pathToFile also results in test.txt containing banana-cream-pie. As for the latter comment, i'm writing an URL-passing protocol. That is, the service

Re: [Lift] Is this a bug?

2010-02-15 Thread Jeppe Nejsum Madsen
On Mon, Feb 15, 2010 at 10:46 PM, Meredith Gregory lgreg.mered...@gmail.com wrote: Dear Jeppe, Thanks! A quick test shows that curl -o test.txt http://localhost:8080/biosimilarity-services/grammar/banana-cream-pie?file=file://pathToFile also results in test.txt containing banana-cream-pie.

Re: [Lift] Lift Record

2010-02-15 Thread David Pollak
My original goal with Record was to have something like: class Person extends Record[Person] { } class CouchPerson extends Person with CouchDB[Person] So the persistence mechanism is mixed into an abstract Record. On Mon, Feb 15, 2010 at 1:34 AM, Timothy Perrett timo...@getintheloop.euwrote:

Re: [Lift] Re: Cached CSS (and Javascript?) issue

2010-02-15 Thread Jeppe Nejsum Madsen
On Mon, Feb 15, 2010 at 10:27 PM, Alex Black a...@alexblack.ca wrote: We don't seem to have this problem with images.. Could this have to do with the fact that the CSS files and javascript are served out of the WAR file, whereas our images are served by a separate Jetty context? It very well

Re: [Lift] Error processing SHtml functions withing nested NodeSeq/Scala code

2010-02-15 Thread David Pollak
On Mon, Feb 15, 2010 at 5:20 AM, soumik soum...@gmail.com wrote: Hi, I'm using 1.1-SNAPSHOT lift release and am experiencing strange behaviour when trying to output a NodeSeq formed from nested NodeSeq Scala code. To highlight the problem let me show you the code I'm trying to execute:

Re: [Lift] Is this a bug?

2010-02-15 Thread Meredith Gregory
Dear Jeppe, Thanks! i was just sorting through that... ;-) Best wishes, --greg On Mon, Feb 15, 2010 at 2:00 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On Mon, Feb 15, 2010 at 10:46 PM, Meredith Gregory lgreg.mered...@gmail.com wrote: Dear Jeppe, Thanks! A quick test shows that

Re: [Lift] Re: thread [Image upload and serving example]

2010-02-15 Thread David Pollak
On Mon, Feb 15, 2010 at 5:54 AM, Luke Nezda lne...@gmail.com wrote: Hello - I attempted to reply to the thread with subject Image upload and serving example initiated by David Pollack on Nov. 30, 2009 via the Google Groups UI and inadvertently sent mail directly to David because there was

[Lift] Custom PreCache in mapper

2010-02-15 Thread Jeppe Nejsum Madsen
Hi, Using PreCache in mapper seems crucial to avoid N+1 select issues and works fine for simple FK relationships. I have a model where I need something more advanced and would like to avoid doing manual queries: 1) More than 1 FK level eg. obj1 - fk1 - fk2 2) Loading a collection ala

[Lift] For classpath resources, a return code 304 still returns content-type

2010-02-15 Thread Jeppe Nejsum Madsen
Looks like a regression of https://www.assembla.com/spaces/liftweb/tickets/239-304-responses-shouldn-t-include-a-content-type-header which is marked as fixed?? What's the procedure here, reopen or create new ticket? /Jeppe -- You received this message because you are subscribed to the Google

[Lift] Problematic Dependencies in lift-couchdb

2010-02-15 Thread Justin Reardon
Hi folks, Using the lift-couchdb module, I noticed that the dispatch lift-json module lift-couchdb depends on has a dependency on the 1.1-M6 lift-json module. When using maven this isn't giving me any issues (the package is downloaded, but I guess the classpaths work out to my advantage)

Re: [Lift] Problematic Dependencies in lift-couchdb

2010-02-15 Thread David Pollak
On Mon, Feb 15, 2010 at 2:32 PM, Justin Reardon justin.rear...@gmail.comwrote: Hi folks, Using the lift-couchdb module, I noticed that the dispatch lift-json module lift-couchdb depends on has a dependency on the 1.1-M6 lift-json module. When using maven this isn't giving me any issues (the

Re: [Lift] For classpath resources, a return code 304 still returns content-type

2010-02-15 Thread David Pollak
On Mon, Feb 15, 2010 at 2:30 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Looks like a regression of https://www.assembla.com/spaces/liftweb/tickets/239-304-responses-shouldn-t-include-a-content-type-header which is marked as fixed?? Reopen the ticket. What's the procedure here, reopen

Re: [Lift] Back in the (Goat) Saddle

2010-02-15 Thread David Pollak
On Sun, Feb 14, 2010 at 4:37 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Real neat! Is it possible to use Goat Rodeo for an offline distributed system? Sure. Goat Rodeo depends on some non-HTTP parts of Lift (although WebKit gets pulled in via Mapper, but we need to split out the DB

Re: [Lift] Re: Back in the (Goat) Saddle

2010-02-15 Thread David Pollak
On Mon, Feb 15, 2010 at 9:35 AM, Peter Robinett pe...@bubblefoundry.comwrote: Hi David, Goat Rodeo sounds cool and your blog post was very interesting. Thanks. Just to ask, do you see Goat Rodeo relating to Lift at all (sharing ideas? code?) Goat Rodeo sits on top of some of Lift's

Re: [Lift] [lift] presentation only equivalent of toForm

2010-02-15 Thread Naftoli Gugenheim
asHtml? 2010/2/14 Channing Walton channingwal...@mac.com Hi, I am using toForm to create forms for crud operations on my mappers, but I cannot see an equivalent method for presentation purposes. That is, no form elements, just text presented in the same tabular format as the form. Is

Re: [Lift] Error processing SHtml functions withing nested NodeSeq/Scala code

2010-02-15 Thread Naftoli Gugenheim
What does that mean it doesn't return? Can you catch an exception? Can you show more clearly the line that doesn't work and how it looks to make it work? 2010/2/15 soumik soum...@gmail.com Hi, I'm using 1.1-SNAPSHOT lift release and am experiencing strange behaviour when trying to output a

Re: [Lift] Interest in improved OpenId attribute support?

2010-02-15 Thread David Pollak
On Sat, Feb 13, 2010 at 7:36 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, As part of a project, I've made some improvements to the OpenId attribute exchange. Together with https://www.assembla.com/spaces/liftweb/tickets/329-Make-OpenID-support-more-extensible this makes it possible

Re: [Lift] Problematic Dependencies in lift-couchdb

2010-02-15 Thread Ross Mellgren
Argh. I'm going to have to reimplement the Dispatch lift-json integration in-house. Shouldn't take too long at least. Thanks for the catch. -Ross On Feb 15, 2010, at 5:40 PM, David Pollak wrote: On Mon, Feb 15, 2010 at 2:32 PM, Justin Reardon justin.rear...@gmail.com wrote: Hi folks,

Re: [Lift] Re: thread [Image upload and serving example]

2010-02-15 Thread Ross Mellgren
I have a mild derivative of this code in another test repo I built for someone else: http://github.com/Dridus/test-image Maybe that'll help. -Ross On Feb 15, 2010, at 5:19 PM, David Pollak wrote: On Mon, Feb 15, 2010 at 5:54 AM, Luke Nezda lne...@gmail.com wrote: Hello - I attempted

Re: [Lift] Re: fmapFunc and order of operations

2010-02-15 Thread David Pollak
If all the SHtml stuff returned a NodeSeq (or Elem) with AnswerHolder and AnswerHolder[T] looked like: trait AnswerHolder[T] { def hasAnswer: Boolean def answer: Box[T] def map[S](f: T = S): Box[S] ... } Then we could get what you want (no explicit mutability) and keep APIs working the

Re: [Lift] New logging code

2010-02-15 Thread Naftoli Gugenheim
I don't think it's theoretically possible to have the same trait instance recognize which superclass that it was mixed in to is doing the logging. Because if A mixes in T, and B extends A and also mixes in T, T is not really mixed in twice. For the same reason using a type parameter would not help

Re: [Lift] Re: Cached CSS (and Javascript?) issue

2010-02-15 Thread Naftoli Gugenheim
Is Alex's problem that the browsers update 24 hours later or not at all or something else? 2010/2/15 Jeppe Nejsum Madsen je...@ingolfs.dk On Mon, Feb 15, 2010 at 10:27 PM, Alex Black a...@alexblack.ca wrote: We don't seem to have this problem with images.. Could this have to do with the

Re: [Lift] Custom PreCache in mapper

2010-02-15 Thread Naftoli Gugenheim
Refactor MetaMapper to make it more extensible? :) 2010/2/15 Jeppe Nejsum Madsen je...@ingolfs.dk Hi, Using PreCache in mapper seems crucial to avoid N+1 select issues and works fine for simple FK relationships. I have a model where I need something more advanced and would like to avoid

Re: [Lift] Re: fmapFunc and order of operations

2010-02-15 Thread Kris Nuttycombe
On Mon, Feb 15, 2010 at 4:31 PM, David Pollak feeder.of.the.be...@gmail.com wrote: If all the SHtml stuff returned a NodeSeq (or Elem) with AnswerHolder and AnswerHolder[T] looked like: trait AnswerHolder[T] {   def hasAnswer: Boolean   def answer: Box[T]   def map[S](f: T = S): Box[S]  

Re: [Lift] Re: fmapFunc and order of operations

2010-02-15 Thread David Pollak
On Mon, Feb 15, 2010 at 4:06 PM, Kris Nuttycombe kris.nuttyco...@gmail.comwrote: On Mon, Feb 15, 2010 at 4:31 PM, David Pollak feeder.of.the.be...@gmail.com wrote: If all the SHtml stuff returned a NodeSeq (or Elem) with AnswerHolder and AnswerHolder[T] looked like: trait

Re: [Lift] Re: fmapFunc and order of operations

2010-02-15 Thread Naftoli Gugenheim
How would this be used? 2010/2/15 David Pollak feeder.of.the.be...@gmail.com If all the SHtml stuff returned a NodeSeq (or Elem) with AnswerHolder and AnswerHolder[T] looked like: trait AnswerHolder[T] { def hasAnswer: Boolean def answer: Box[T] def map[S](f: T = S): Box[S] ...

[Lift] Re: Improvements to Lift-Json

2010-02-15 Thread John A. De Goes
Added support for flattening/unflattening a JSON object to/from a key/ value pair map of strings to strings (this representation of a JSON object is useful for NVP web API interfaces). On Feb 14, 10:19 am, John A. De Goes j...@n-brain.net wrote: I have a branch of liftweb in which I've modified

Re: [Lift] Back in the (Goat) Saddle

2010-02-15 Thread Naftoli Gugenheim
From the wiki: Each worker has its own SQL store -- this fills in part of the picture. :) On Mon, Feb 15, 2010 at 5:46 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Feb 14, 2010 at 4:37 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Real neat! Is it possible to use

[Lift] Re: Improvements to Lift-Json

2010-02-15 Thread John A. De Goes
Now removed the dependency on paranamer because paranamer doesn't work for case classes that inherit strange combinations. Anyone who's using lift-json care to test this fork? Regards, John On Feb 15, 5:25 pm, John A. De Goes j...@n-brain.net wrote: Added support for flattening/unflattening a

[Lift] Re: Error processing SHtml functions withing nested NodeSeq/Scala code

2010-02-15 Thread soumik
Hi Marius, Thanks for your response. I'm sorry for mis-communicating my problem earlier. As you pointed out the problem doesn't occur when the call to the function is made from a CometActor. In my case too, it was not a CometActor. Rather, it was the LiftActor. (Sometime back we had different