Re: [Lift] warning: value rewrite in object LiftRules is deprecated

2010-01-04 Thread David Pollak
On Thu, Dec 31, 2009 at 1:55 PM, Alex Black a...@alexblack.ca wrote:

 Two questions:

 1. Whats the replacement for LiftRules.rewrite?
 2. Is there a way I can write a custom Loc so that SiteMap is aware of
 the re-writing?


Yes.  Please see the Wiki code in example:
http://github.com/dpp/liftweb/blob/master/lift-examples/example/src/main/scala/net/liftweb/example/lib/WikiStuff.scala

The Loc is integrated with the rewriting and the rewritten stuff is type
safe.



 I'm following the AccountLoc extends Loc[AccountInfo] example in the
 book, but my rewriting is not having any effect yet, I am trying to
 figure out what I am missing.

 - Alex

 --

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





-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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.




Re: [Lift] warning: value rewrite in object LiftRules is deprecated

2009-12-31 Thread Ross Mellgren
Instead of LiftRules.rewrite, use LiftRules.statelessRewrite if you  
want the old behavior (e.g. rewriting while S is not available)

If you have rewrites that require S to be available, then you can use  
the new LiftRules.statefulRewrite

I'm not sure about the SiteMap question.

-Ross

On Dec 31, 2009, at 4:55 PM, Alex Black wrote:

 Two questions:

 1. Whats the replacement for LiftRules.rewrite?
 2. Is there a way I can write a custom Loc so that SiteMap is aware of
 the re-writing?

 I'm following the AccountLoc extends Loc[AccountInfo] example in the
 book, but my rewriting is not having any effect yet, I am trying to
 figure out what I am missing.

 - Alex

 --

 You received this message because you are subscribed to the Google  
 Groups Lift group.
 To post to this group, send email to lift...@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 
 .



--

You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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.




Re: [Lift] warning: value rewrite in object LiftRules is deprecated

2009-12-31 Thread Naftoli Gugenheim
Can the deprecration message be made to say so?

-
Ross Mellgrendri...@gmail.com wrote:

Instead of LiftRules.rewrite, use LiftRules.statelessRewrite if you  
want the old behavior (e.g. rewriting while S is not available)

If you have rewrites that require S to be available, then you can use  
the new LiftRules.statefulRewrite

I'm not sure about the SiteMap question.

-Ross

On Dec 31, 2009, at 4:55 PM, Alex Black wrote:

 Two questions:

 1. Whats the replacement for LiftRules.rewrite?
 2. Is there a way I can write a custom Loc so that SiteMap is aware of
 the re-writing?

 I'm following the AccountLoc extends Loc[AccountInfo] example in the
 book, but my rewriting is not having any effect yet, I am trying to
 figure out what I am missing.

 - Alex

 --

 You received this message because you are subscribed to the Google  
 Groups Lift group.
 To post to this group, send email to lift...@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 
 .



--

You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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.


--

You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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.