[Lift] Re: Changes in 1.1 production mode?

2009-10-28 Thread Yousry Abdallah
LiftRules.stripComments(false) generates following error message: Boot.scala:61: error: wrong number of arguments for method apply: ()() = Boolean in trait Vendor LiftRules.stripComments(false) On 27 Okt., 16:52, David Pollak feeder.of.the.be...@gmail.com wrote: Please see

[Lift] Re: Changes in 1.1 production mode?

2009-10-28 Thread Timothy Perrett
Looking at the definition: val stripComments: FactoryMaker[() = Boolean] = new FactoryMaker(() = {() = { if (Props.devMode) false else true }}) {} try doing: LiftRules.stripComments(false){} Cheers, Tim On 28 Oct 2009, at 13:22, Yousry Abdallah wrote:

[Lift] Re: Changes in 1.1 production mode?

2009-10-28 Thread Yousry Abdallah
I downloaded the library source yesterday and stumbled on the (abstract) factory pattern in the LiftRules Class. Do you think this is the desired way to change a parameter? Sometimes you use simple assignment: LiftRules.useXhtmlMimeType = false or you apply a value: LiftRules.setSiteMap(...)

[Lift] Re: Changes in 1.1 production mode?

2009-10-28 Thread Ross Mellgren
I had to slog through some factory maker stuff recently. What I found out was that it was amazingly flexible, but that made the simple case non-obvious. For the simple case (set site-wide), the way I found to to do it was factory.default(() = defaultValue) e.g.

[Lift] Re: Changes in 1.1 production mode?

2009-10-28 Thread David Pollak
Yeah, the signatures are convuluted... gotta change them to FactoryMaker[Boolean] rather than FactoryMaker[() = Boolean] On Wed, Oct 28, 2009 at 8:34 AM, Ross Mellgren dri...@gmail.com wrote: I had to slog through some factory maker stuff recently. What I found out was that it was amazingly

[Lift] Re: Changes in 1.1 production mode?

2009-10-28 Thread David Pollak
On Wed, Oct 28, 2009 at 9:21 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Yeah, the signatures are convuluted... gotta change them to FactoryMaker[Boolean] rather than FactoryMaker[() = Boolean] See http://github.com/dpp/liftweb/issues/#issue/141 On Wed, Oct 28, 2009 at 8:34

[Lift] Re: Changes in 1.1 production mode?

2009-10-27 Thread David Pollak
Please see LiftRules.stripComments. You can do LiftRules.stripComments(false) On Tue, Oct 27, 2009 at 8:18 AM, Yousry Abdallah yous...@gmail.com wrote: Hi, at the moment I'm testing my application against 1.1 snapshot and I noticed that while running lift in production mode: -