[Lift] Re: [Lift committers] A Groovy welcome to James Strachan who has joined the Lift committers

2010-02-09 Thread James Strachan
Just bringing this thread that drifted off onto the committers list back here... On 8 February 2010 18:58, Naftoli Gugenheim naftoli...@gmail.com wrote: Welcome! Out of curiosity, what are the advantages of this other templating engine? Probably the Haml site describes it quite well (see the

[Lift] CRUDify Customized Access Control Issues

2010-02-09 Thread Robert Thurnher
Dear list, I'm pretty new to Lift (went thru the getting started tutorial, checked out the book plus its sample app, dived into Lift's source a little and am by now tinkering w/ coding up some rather simple first apps for further learning etc.). So, first of all, I'd like to thank you for this

Re: [Lift] CRUDify Customized Access Control Issues

2010-02-09 Thread Jeppe Nejsum Madsen
Robert Thurnher r.thurn...@gmail.com writes: Dear list, I'm pretty new to Lift (went thru the getting started tutorial, checked out the book plus its sample app, dived into Lift's source a little and am by now tinkering w/ coding up some rather simple first apps for further learning etc.).

[Lift] Re: Facebook Application

2010-02-09 Thread Leo Lännenmäki
Hi, I'll definitely take a look. But I think FB connect is not applicable for our use.. Here a simple version of the use: - We have a Lift application providing a RESTfull JSON API for our clients. Through that API a client application can share a photo to Facebook - We have a Web client for the

[Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Hugo Palma
Sorry Tim but i don't quite understand what you mean by page is scoped to a single snippet and that invalidates that you have a resource bundle per page. Sorry is this is clear to everyone else but i'm new with Lift so i'm still grasping basic concepts. On Feb 8, 10:49 pm, Timothy Perrett

Re: [Lift] CRUDify Customized Access Control Issues

2010-02-09 Thread Jeppe Nejsum Madsen
On Tue, Feb 9, 2010 at 2:51 PM, Robert Thurnher r.thurn...@gmail.com wrote: On 9 February 2010 13:46, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Robert Thurnher r.thurn...@gmail.com writes: [...] Currently, I'm having some issues w/ getting customized page access control of CRUDified

Re: [Lift] CRUDify Customized Access Control Issues

2010-02-09 Thread Robert Thurnher
On 9 February 2010 16:04, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: [...] I suggest you upgrade to 2.0-SNAPSHOT (or M1}, much improved :-) Am definitely going to give that a spin (wanted to get a better feel of Lift in general before it). BTW, how safe is it to use M* resp. SNAPSHOT

Re: [Lift] Comet shutdown?

2010-02-09 Thread David Pollak
On Tue, Feb 9, 2010 at 3:28 AM, Adam Warski a...@warski.org wrote: Hello, I'm playing with comet support in lift, following the example from the book, and it works fine except for shutting down. I close the browser window where the page with the comet client was open and I would expect that

[Lift] Welcome javier Goday to the Lift committers

2010-02-09 Thread David Pollak
Folks, Please join me in welcoming Javier Goday to the Lift committers. Javier wrote the Lift LDAP module and now that he's a committer, he can make the LDAP module part of the official Lift distribution (and the crowd goes wild). Welcome Javier!! Thanks, David -- Lift, the simply

Re: [Lift] Welcome javier Goday to the Lift committers

2010-02-09 Thread Naftoli Gugenheim
Welcome! - David Pollakfeeder.of.the.be...@gmail.com wrote: Folks, Please join me in welcoming Javier Goday to the Lift committers. Javier wrote the Lift LDAP module and now that he's a committer, he can make the LDAP module part of the official Lift

Re: [Lift] Welcome javier Goday to the Lift committers

2010-02-09 Thread Mads Hartmann Jensen
Welcome Javier! :) On 09/02/2010, at 17.09, David Pollak wrote: Folks, Please join me in welcoming Javier Goday to the Lift committers. Javier wrote the Lift LDAP module and now that he's a committer, he can make the LDAP module part of the official Lift distribution (and the crowd

Re: [Lift] Mapped(Date)(Time) formatter/parser

2010-02-09 Thread Naftoli Gugenheim
Wait--are you saying TimeHelpers should use ConversionRules and ConversionRules should *not* reference TimeHelpers? If so it would involve a lot of refactoring, although I think I hear where you're coming from. I'll try to push the wip-nafg-date branch a bit later. What time zone are you in?

Re: [Lift] Welcome javier Goday to the Lift committers

2010-02-09 Thread Indrajit Raychaudhuri
Welcome Javier! - a wild crowd member On 09/02/10 9:39 PM, David Pollak wrote: Folks, Please join me in welcoming Javier Goday to the Lift committers. Javier wrote the Lift LDAP module and now that he's a committer, he can make the LDAP module part of the official Lift distribution (and the

Re: [Lift] Snippet with no reflection an no massive case statement

2010-02-09 Thread Timothy Perrett
So you don't want to write any explicit mapping, and you don't want to use reflection??? How would you propose Lift know what your asking for? Im afraid voodoo is not yet compatible with the JVM ;-) Cheers, Tim On 9 Feb 2010, at 16:54, Hugo Palma wrote: I just read

[Lift] Re: Snippet with no reflection an no massive case statement

2010-02-09 Thread Hugo Palma
Why doesn't Lift create the mapping at startup using reflection ? It's not using reflection that's the problem, it's using reflection at runtime for every single snippet usage. I may be over simplifying things, but if at startup Lift would go through all snippet classes and using reflection found

Re: [Lift] Re: Snippet with no reflection an no massive case statement

2010-02-09 Thread David Pollak
On Tue, Feb 9, 2010 at 9:10 AM, Hugo Palma hugo.m.pa...@gmail.com wrote: Why doesn't Lift create the mapping at startup using reflection ? It's not using reflection that's the problem, it's using reflection at runtime for every single snippet usage. Why do you care? The cost of doing a

[Lift] Re: Snippet with no reflection an no massive case statement

2010-02-09 Thread Hugo Palma
I just started using Lift so i'm trying to understand the Lift way of doing things. I offer suggestions whenever i think it's a valid one and i'm not just saying something that doesn't bring any value to the discussion. Hopefully that will happen more in the future as i learn more about the

[Lift] Re: Snippet with no reflection an no massive case statement

2010-02-09 Thread Hugo Palma
I care because in the wiki it says this about reflection snippets: works perfectly for development / low volume deployment which isn't the case for the application i'm building. On 9 Fev, 17:14, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Feb 9, 2010 at 9:10 AM, Hugo Palma

Re: [Lift] Re: Support for page and snippet level localization

2010-02-09 Thread James Matlik
I would also be very interested in more detail on this topic. I've been toying with designs with a variety of technologies (a self-driven academic activity this far) to formulate how a massively multilingual site (upwards of 12 languages) could be implemented. I've not had much luck understanding

[Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Timothy Perrett
The analogy would be MVC controllers... the index method has an index page and an index resource bundle. Within Lift, we dont use controllers, so there is nothing stopping you calling a whole bunch of snippets on a single page - thus, there would be no single page resource bundle (that is, it

[Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Timothy Perrett
Come to think of it - if you really wanted to have a resource bundle for each page... you could do that using the resource bundle factories I listed earlier. Cheers, Tim On Feb 9, 5:38 pm, Timothy Perrett timo...@getintheloop.eu wrote: The analogy would be MVC controllers... the index method

Re: [Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Hugo Palma
So what you're saying is that a page can include a bunch of snippets and that's why it doesn't be an advantage to have page resource bundles ? I'm sorry but i don't see why. I'm not sure how people are using resource bundles with Lift now but the way i would do it would be to create a resource

[Lift] Helpers.bind question

2010-02-09 Thread GA
Hello guys, I have a very silly question. I have a snippet that reads a string field from the database and it inserts it within a html page. So far so good. The text that the snippet reads from the database is a piece of html code. The problem is that the bind method replaces the and within

Re: [Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Timothy Perrett
Appreciate where you are coming from, however, the defaults are working quite well so perhaps it would be frugal to break some other boxed configurations into lift-localization or something... Such as page related resource bundles. Needs some thinking, but its certainly possible. Lift is

Re: [Lift] CRUDify Customized Access Control Issues

2010-02-09 Thread Jeppe Nejsum Madsen
Robert Thurnher r.thurn...@gmail.com writes: On 9 February 2010 16:04, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: [...] I suggest you upgrade to 2.0-SNAPSHOT (or M1}, much improved :-) Am definitely going to give that a spin (wanted to get a better feel of Lift in general before it).

Re: [Lift] Welcome javier Goday to the Lift committers

2010-02-09 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: Folks, Please join me in welcoming Javier Goday to the Lift committers. Javier wrote the Lift LDAP module and now that he's a committer, he can make the LDAP module part of the official Lift distribution (and the crowd goes wild).

Re: [Lift] Helpers.bind question

2010-02-09 Thread GA
What we have here is a iphone native application that has the help screens in HTML. The help screens are in multiple languages and are stored in the database. When the application starts, it checks in the server for updates in the help pages calling a particular URL but with different context

Re: [Lift] Mapped(Date)(Time) formatter/parser

2010-02-09 Thread Naftoli Gugenheim
It would be really great if you could take a look at TimeHelpers and my diff (vs. original), on RB and wip-nafg-date. I asked about your time zone only because I was wondering if you'd be around when I pushed it, but it's pushed. - Jeppe Nejsum

Re: [Lift] Helpers.bind question

2010-02-09 Thread Naftoli Gugenheim
You have two options: scala.xml.Unparsed(theString), and parsing it explicitly into a NodeSeq (see scala.xml.XML or Lift's equivalent which I haven't used but believe exists). - GAmy_li...@me.com wrote: What we have here is a iphone native application that

Re: [Lift] Helpers.bind question

2010-02-09 Thread David Pollak
On Tue, Feb 9, 2010 at 12:04 PM, GA my_li...@me.com wrote: What we have here is a iphone native application that has the help screens in HTML. The help screens are in multiple languages and are stored in the database. When the application starts, it checks in the server for updates in the

Re: [Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Hugo Palma
I understand, just trying to share some of my own experience and ideas. So, should i create an issue for further discussion or do we just let it be ? On Tue, Feb 9, 2010 at 18:43, Timothy Perrett timo...@getintheloop.euwrote: Appreciate where you are coming from, however, the defaults are

Re: [Lift] Why not SHtml?

2010-02-09 Thread Naftoli Gugenheim
Could you give me exact instructions what to do to test my code on 2.8? Thanks. 2010/2/7 David Pollak feeder.of.the.be...@gmail.com On Sun, Feb 7, 2010 at 1:01 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: So if I get around to it would it indeed be preferable to point it to SHtml?

Re: [Lift] Why not SHtml?

2010-02-09 Thread David Pollak
On Tue, Feb 9, 2010 at 2:28 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Could you give me exact instructions what to do to test my code on 2.8? git checkout -b 280_port_refresh origin/280_port_refresh cd framework/lift-persistence/lift-mapper emacs $(grep -l FIXME: 280 $(find . -name

Re: [Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Timothy Perrett
mm im not sure who would take this on, as I think i've been doing most of the localisation stuff and I don't have capacity to do anything about this for quite some time unless it becomes an urgent priority. Any discussion must take place on this list, not on (or in) tickets, review board or

Re: [Lift] Why not SHtml?

2010-02-09 Thread Naftoli Gugenheim
Sorry - what's the Windows (eclipse) equivalent--i.e., what does that line do? Also I wasn't sure what you meant by 'comments around my code.' Thanks! - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Feb 9, 2010 at 2:28 PM, Naftoli Gugenheim

Re: [Lift] Why not SHtml?

2010-02-09 Thread David Pollak
On Tue, Feb 9, 2010 at 2:49 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Sorry - what's the Windows (eclipse) equivalent--i.e., what does that line do? Find all the files that contain FIXME: 280 in the mapper package. Also I wasn't sure what you meant by 'comments around my code.' It

Re: [Lift] Why not SHtml?

2010-02-09 Thread Naftoli Gugenheim
Never mind, I go your intent. Thanks. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Feb 9, 2010 at 2:28 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Could you give me exact instructions what to do to test my code on 2.8? git checkout -b

Re: [Lift] Why not SHtml?

2010-02-09 Thread Naftoli Gugenheim
Thanks - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Feb 9, 2010 at 2:49 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Sorry - what's the Windows (eclipse) equivalent--i.e., what does that line do? Find all the files that contain FIXME:

Re: [Lift] CRUDify Customized Access Control Issues

2010-02-09 Thread Robert Thurnher
On 9 February 2010 20:11, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Robert Thurnher r.thurn...@gmail.com writes: On 9 February 2010 16:04, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: [...] I suggest you upgrade to 2.0-SNAPSHOT (or M1}, much improved :-) Am definitely going to give that

Re: [Lift] Why not SHtml?

2010-02-09 Thread Naftoli Gugenheim
Never mind, apparently I wasn't up to date. On Tue, Feb 9, 2010 at 11:20 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I got OneToMany to compile (not in a way that would work on 2.7 though). Then I tried to push it: naft...@naftoli-pc /c/dev/gitrepo/liftweb (280_port_refresh) $ git

Re: [Lift] Make MenuBuilder generate link for current page

2010-02-09 Thread Naftoli Gugenheim
linkToSelf=true? (Without getting involved in the different conventions for multiple-word attributes :) ) - David Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Feb 8, 2010 at 6:53 AM, Hugo Palma hugo.m.pa...@gmail.com wrote: By default the menubuilder

Re: [Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Naftoli Gugenheim
If the same snippet is used by two pages you would want two separate resource bundles to be used for the same snippet? - Hugo Palmahugo.m.pa...@gmail.com wrote: So what you're saying is that a page can include a bunch of snippets and that's why it doesn't be

Re: [Lift] Re: Snippet with no reflection an no massive case statement

2010-02-09 Thread Naftoli Gugenheim
Besides, would it even help? Is the time in obtaining a Method instance rather than invoking it? - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Feb 9, 2010 at 9:10 AM, Hugo Palma hugo.m.pa...@gmail.com wrote: Why doesn't Lift create the mapping

Re: [Lift] Helpers.bind question

2010-02-09 Thread GA
Thanks guys. It works. On Feb 9, 2010, at 10:26 PM, David Pollak wrote: On Tue, Feb 9, 2010 at 12:04 PM, GA my_li...@me.com wrote: What we have here is a iphone native application that has the help screens in HTML. The help screens are in multiple languages and are stored in the