Permalink
Browse files

Merge branch 'master' into wip_canbind

  • Loading branch information...
2 parents 7ddf7b2 + 1ffac23 commit c89bcfa50c2229234ee456a1fb89ef3fc36858f4 @nafg nafg committed Oct 18, 2011
@@ -1686,6 +1686,30 @@ object By {
}
}
+object By_>= {
+
+ import OprEnum._
+
+ def apply[O <: Mapper[O], T, U <% T](field: MappedField[T, O],
+ value: U) = Cmp[O, T](field, >=, Full(value), Empty, Empty)
+
+ def apply[O <: Mapper[O], T](field: MappedField[T, O], otherField:
+ MappedField[T, O]) = Cmp[O, T](field, >=, Empty, Full(otherField),
+ Empty)
+}
+
+object By_<= {
+
+ import OprEnum._
+
+ def apply[O <: Mapper[O], T, U <% T](field: MappedField[T, O],
+ value: U) = Cmp[O, T](field, <=, Full(value), Empty, Empty)
+
+ def apply[O <: Mapper[O], T](field: MappedField[T, O], otherField:
+ MappedField[T, O]) = Cmp[O, T](field, <=, Empty, Full(otherField),
+ Empty)
+}
+
object NotBy {
import OprEnum._
@@ -1883,7 +1883,7 @@ class LiftSession(private[http] val _contextPath: String, val uniqueId: String,
case text: Text => text
case unparsed: Unparsed => unparsed
- case a: Atom[Any] if a.getClass() == "scala.xml.Atom" => new Text(a.data.toString)
+ case a: Atom[Any] if a.getClass().getName() == "scala.xml.Atom" => new Text(a.data.toString)
case v => v
}

0 comments on commit c89bcfa

Please sign in to comment.