[Lift] Some XML special chars rendered by lift, others not in 1.1-SNAPSHOT

2009-09-07 Thread jon
Hi, I've noticed that some special char xml tags are being interpreted by lift rather than passing through to the browser. source code in my template: & © " » < > result from curl http://localhost:8080/ & ©

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-07 Thread marius d.
On Sep 8, 1:18 am, glenn wrote: > Marius, > > Please bear with me. I'm a little slow in following the logic here. Don't worry glen. > > I understand I can protect the resource as you suggest from all > but users with admin roles, using the LocParam, > > HttpAuthProtected(() => Full(AuthRole("

[Lift] & vs & within attributes in templates

2009-09-07 Thread Grant Wood
Hello Lifters, If I create a template with the following: Foo I will be served an empty page, containing none of my snippets, and throwing or logging no errors. By "empty" I mean, the page contains only the outermost xhtml which Lift wraps a page with (liftajax, xml declaration, etc.) b

[Lift] rewrite problem

2009-09-07 Thread night_stalker
I want to make RESTful urls (not REST API), for example: "/post/123" is mapped to "post/show.html" with param "id=123" but the following rewrite rule seems recursive LiftRules.rewrite.append { case RewriteRequest(ParsePath(List("post", id), _, _, _), _, _) => RewriteResponse

[Lift] Re: CRUDify

2009-09-07 Thread Randinn
I'll ask the author. On Sep 2, 3:49 am, David Pollak wrote: > Good stuff!  Care to add a wiki page > that points to these blog posts? > > On Tue, Sep 1, 2009 at 10:10 AM, Randinn wrote: > > > Here are a couple of good posts on seting up CRUDify, I thought > >

[Lift] Crazy idea for lift's mega proto user: admin panel.

2009-09-07 Thread DFectuoso
I was thinking about how wonderful it is to get a login/register/ forgotPassword functionality with mega proto user and how it could become even better with a good tool for creating an admin section. I'm just adding the idea here so maybe if other people find value it could be considered for deve

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-07 Thread glenn
Marius, Please bear with me. I'm a little slow in following the logic here. I understand I can protect the resource as you suggest from all but users with admin roles, using the LocParam, HttpAuthProtected(() => Full(AuthRole("admin") . Now, when I click on the link, if no user is logged i

[Lift] Re: solution to jetty:run locks files on windows problem

2009-09-07 Thread Timothy Perrett
Thanks Jon, thats super. Cheers, Tim On Sep 7, 7:25 pm, jon wrote: > Done:http://wiki.github.com/dpp/liftweb/how-to-fix-file-locking-problem-wi... > > On Sep 7, 1:49 pm, Timothy Perrett wrote: > > > > > Jon, good stuff - perhaps write this up on the wiki: > > >http://wiki.github.com/dpp/liftwe

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-07 Thread marius d.
On Sep 7, 10:53 pm, glenn wrote: > Marius, > > In practical terms, if I am already using an If LocParam, as in the > following: > > If(() => User.isa_?("admin"), S.?("not_authorized")) > > what does adding > > HttpAuthProtected(() => User.authorize("admin")) to the Loc do? It sais that this Lo

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-07 Thread glenn
Tim, You are right. Protecting resources and menu items is well documented in Lift. But providing read/write permissions, and even restricting access to specific data entities based on a subject's role, if that's what you mean by more granularity, is often a required use case in an application.

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-07 Thread glenn
Marius, In practical terms, if I am already using an If LocParam, as in the following: If(() => User.isa_?("admin"), S.?("not_authorized")) what does adding HttpAuthProtected(() => User.authorize("admin")) to the Loc do? Here, I've had to define User.authorize to make things work, as: def a

[Lift] Re: solution to jetty:run locks files on windows problem

2009-09-07 Thread jon
Done: http://wiki.github.com/dpp/liftweb/how-to-fix-file-locking-problem-with-jettyrun-in-windows On Sep 7, 1:49 pm, Timothy Perrett wrote: > Jon, good stuff - perhaps write this up on the wiki: > > http://wiki.github.com/dpp/liftweb > > Cheers, Tim > > On Sep 7, 6:09 pm, jon wrote: > > > > >

[Lift] Re: Hudson build down?

2009-09-07 Thread Timothy Perrett
OK, so its been running for a while now and it looks like its featuring that same file open problem as before Can one of the admins fix it? Cheers, Tim On Sep 7, 6:54 pm, Timothy Perrett wrote: > I've just triggered a manual build - so lets see if it works. > > Cheers, Tim > > On Sep 7, 9:

[Lift] Re: Hudson build down?

2009-09-07 Thread Timothy Perrett
I've just triggered a manual build - so lets see if it works. Cheers, Tim On Sep 7, 9:19 am, Jeppe Nejsum Madsen wrote: > Hi, > > Seems like it's been 5 days without a build, but there has been plenty > of action on github. > > But looking at the maven repo it looks like there has been a sn

[Lift] Re: solution to jetty:run locks files on windows problem

2009-09-07 Thread Timothy Perrett
Jon, good stuff - perhaps write this up on the wiki: http://wiki.github.com/dpp/liftweb Cheers, Tim On Sep 7, 6:09 pm, jon wrote: > Hi all, > > If you happen to be developing under windows you will notice that mvn > jetty:run locks files and prevents editing while the server is > running.   Su

[Lift] Re: Mapper tries to insert entry instead of updating fetched entry

2009-09-07 Thread Naftoli Gugenheim
So follow the source code of saved_? and figure out what false information it's calculating. You may have to override something like keyIndicatesSaved. I recently asked if the logic for saved_? could be changed to use a flag to track if it actually was saved. DPP didn't seem so thrilled to chang

[Lift] solution to jetty:run locks files on windows problem

2009-09-07 Thread jon
Hi all, If you happen to be developing under windows you will notice that mvn jetty:run locks files and prevents editing while the server is running. Super annoying. The problem is that jetty memory maps files by default and windows locks memory mapped files. The solution is to turn off the ma

[Lift] Re: Where did AnyVar go ?

2009-09-07 Thread Ross Mellgren
http://github.com/dpp/liftweb/commit/4dce48dfe938b92ae2ed50445dab1f4c2d104a4f Looks like DPP removed it, and based on the surrounding commit, maybe the intention was to put it in util somewhere, though the commit did not add it back anywhere. -Ross On Sep 7, 2009, at 9:21 AM, marius d. wrot

[Lift] Re: Mapper tries to insert entry instead of updating fetched entry

2009-09-07 Thread Somindra Bhattacharya
Hi Folks, Apologies for posting in bits. I am very new to LIFT and am discovering many of its aspects. I changed the code and tried doing a delete instead of an update: def updateMJLocalIP(serial: String, req: Req): LiftResponse = { Log.info("updateMJLocalIP: " + serial + " " + req.xml)

[Lift] Re: Mapper tries to insert entry instead of updating fetched entry

2009-09-07 Thread Somindra Bhattacharya
On Sep 7, 6:23 pm, Naftoli Gugenheim wrote: > What is the return value of saved_? on the mapper? > Also I wonder if there's any relevant information in the thread that > discussed writing a MAC address primary key. > > - > > Somindra  Bhattacharya wrote: > >

[Lift] Re: Mapper tries to insert entry instead of updating fetched entry

2009-09-07 Thread Naftoli Gugenheim
What is the return value of saved_? on the mapper? Also I wonder if there's any relevant information in the thread that discussed writing a MAC address primary key. - Somindra Bhattacharya wrote: On Sep 7, 1:12 pm, Somindra Bhattacharya wrote: > Hi Everyo

[Lift] Re: Where did AnyVar go ?

2009-09-07 Thread marius d.
Same question for Injector, SimpleInjector etc. Br's, Marius On Sep 7, 4:08 pm, Marius wrote: > Hi, > > I just did a pull and get a bunch of compile time errors obviously. > Seems like someone kidnapped AnyVar? > > Br's, > Marius --~--~-~--~~~---~--~~ You receive

[Lift] Where did AnyVar go ?

2009-09-07 Thread Marius
Hi, I just did a pull and get a bunch of compile time errors obviously. Seems like someone kidnapped AnyVar? Br's, Marius --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send ema

[Lift] Re: Mapper tries to insert entry instead of updating fetched entry

2009-09-07 Thread Somindra Bhattacharya
On Sep 7, 1:12 pm, Somindra Bhattacharya wrote: > Hi Everyone, > > I am writing a simple application which, given a HTTP PUT request, > attempts to retrieve an entry from the database (MySql in this case), > update the entry and respond appropriately. The entry in question has > an unique primar

[Lift] Hudson build down?

2009-09-07 Thread Jeppe Nejsum Madsen
Hi, Seems like it's been 5 days without a build, but there has been plenty of action on github. But looking at the maven repo it looks like there has been a snapshot release on sep 7 Is this a manual build or is this no longer the build server for lift: http://hudson.scala-tools.org/job/

[Lift] Mapper tries to insert entry instead of updating fetched entry

2009-09-07 Thread Somindra Bhattacharya
Hi Everyone, I am writing a simple application which, given a HTTP PUT request, attempts to retrieve an entry from the database (MySql in this case), update the entry and respond appropriately. The entry in question has an unique primary key. Here is the code in question: def update(serial: S

[Lift] Re: FieldIdentifier

2009-09-07 Thread marius d.
A MappedField is a FieldIdentifier. In a field you can override validate function and return a list of FieldError. You need to override uniqueFieldId and return the ID of the page element that will hold the specific error message. It is the ID that you specified to the tag. In this way the error