[Lift] Re: mapper vs record

2009-01-25 Thread Marius

Record is not finished yet and yes it is the new mapper. So please
use Mapper.

AFAIK Record is targeted for Lift 1.1.

Br's,
Marius

On Jan 25, 6:35 pm, Alex Boisvert boisv...@intalio.com wrote:
 Hi guys,

 I've been a little out of the loop recently... so excuse me if I'm asking a
 dump question.

 I see there's now lift-mapper and lift-record modules.   If I understand
 correctly, record is the newly redesigned mapper?  It looks like the
 examples still use mapper and documentation/tutorials seems to be thin for
 record.

 Now, say I'm starting a new lift project, which one would you recommend?

 alex
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: mapper vs record

2009-01-25 Thread Alex Boisvert
Okidooke.  Thanks for the clarification.

On Sun, Jan 25, 2009 at 8:40 AM, Marius marius.dan...@gmail.com wrote:


 Record is not finished yet and yes it is the new mapper. So please
 use Mapper.

 AFAIK Record is targeted for Lift 1.1.

 Br's,
 Marius

 On Jan 25, 6:35 pm, Alex Boisvert boisv...@intalio.com wrote:
  Hi guys,
 
  I've been a little out of the loop recently... so excuse me if I'm asking
 a
  dump question.
 
  I see there's now lift-mapper and lift-record modules.   If I
 understand
  correctly, record is the newly redesigned mapper?  It looks like the
  examples still use mapper and documentation/tutorials seems to be thin
 for
  record.
 
  Now, say I'm starting a new lift project, which one would you recommend?
 
  alex
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Passing list URL parameters to snippets

2009-01-25 Thread Tim Perrett

Hey guys,

I have a situation where I want to do something like:

LiftRules.rewrite.prepend(NamedPF(catalougeBind) {
  case RewriteRequest(path @ ParsePath(catalouge :: groups, _,
_,_), _, _) =
   RewriteResponse(catalouge :: Nil, Map(groups -
groups))
  }

However, this is obviously invalid, so how else could I pass the list
of groups which could be any number of parameters to my snippet?
RequestVar perhaps? I've looked at the wiki example with its
zipWithIndex solution mapping x parameters onto param1, param2 etc but
this is not really workable for what I need.

Id appreciate any thoughts you guys might have

Cheers

Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Passing list URL parameters to snippets

2009-01-25 Thread Charles F. Munat

Not sure what the answer is to this (not even sure what's being asked), 
but you probably mean catalogue, not catalouge. Of course, the American 
spelling is catalog.

:-)
Chas.

Tim Perrett wrote:
 Hey guys,
 
 I have a situation where I want to do something like:
 
 LiftRules.rewrite.prepend(NamedPF(catalougeBind) {
   case RewriteRequest(path @ ParsePath(catalouge :: groups, _,
 _,_), _, _) =
RewriteResponse(catalouge :: Nil, Map(groups -
 groups))
   }
 
 However, this is obviously invalid, so how else could I pass the list
 of groups which could be any number of parameters to my snippet?
 RequestVar perhaps? I've looked at the wiki example with its
 zipWithIndex solution mapping x parameters onto param1, param2 etc but
 this is not really workable for what I need.
 
 Id appreciate any thoughts you guys might have
 
 Cheers
 
 Tim
  

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Passing list URL parameters to snippets

2009-01-25 Thread David Pollak
Try:

RewriteResponse(catalouge :: Nil, Map(groups.zipWithIndex.map{case (g, i)
= (group+i, g)} :_*))

Thanks,

David

On Sun, Jan 25, 2009 at 11:05 AM, Tim Perrett he...@timperrett.com wrote:


 Hey guys,

 I have a situation where I want to do something like:

LiftRules.rewrite.prepend(NamedPF(catalougeBind) {
  case RewriteRequest(path @ ParsePath(catalouge :: groups, _,
 _,_), _, _) =
   RewriteResponse(catalouge :: Nil, Map(groups -
 groups))
  }

 However, this is obviously invalid, so how else could I pass the list
 of groups which could be any number of parameters to my snippet?
 RequestVar perhaps? I've looked at the wiki example with its
 zipWithIndex solution mapping x parameters onto param1, param2 etc but
 this is not really workable for what I need.

 Id appreciate any thoughts you guys might have

 Cheers

 Tim
 



-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: ** breaking change **

2009-01-25 Thread Marc Boschma

Would the same key appear if there where resource bundles for  
different variations of the same language. eg. 'en-AU', 'en-US', 'en- 
ZA', and 'en' ?

Marc

On 26/01/2009, at 4:46 AM, Marius wrote:

 If you have the same key in different files the first one found will
 be returned. Nevertheless having the same key in different files
 doesn't make much sense.

 If you're running into any issues please let me know.

 Thoughts, questions?

 Br's,
 Marius
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: ** breaking change **

2009-01-25 Thread Marius



On Jan 26, 2:27 am, Marc Boschma marc+lift...@boschma.cx wrote:
 Would the same key appear if there where resource bundles for  
 different variations of the same language. eg. 'en-AU', 'en-US', 'en-
 ZA', and 'en' ?

Of course the same key appears in lang file variants. Nevertheless
these resource bundles apply as they did before based on
LiftRules.calculateLocale (if I remember the name right). The locale
is giving lang-country pair.


 Marc

 On 26/01/2009, at 4:46 AM, Marius wrote:

  If you have the same key in different files the first one found will
  be returned. Nevertheless having the same key in different files
  doesn't make much sense.

  If you're running into any issues please let me know.

  Thoughts, questions?

  Br's,
  Marius
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---