Take my input or vote of confidence with a grain of salt...
I had to use java.util.Calendar recently and noticed some of the
issues with it that you mention. For my case, I created a light
wrapper for my use of java.util.Calendar that redefined the relevant
statics (Monday, Tuesday, etc) as Scal
Hello everyone,
I have the following code...
case class item(name : String)
class demo {
def exampleFour(xhtml : NodeSeq) : NodeSeq = {
val map = Map("Test" -> List(item("1"), item("2"), item("3")),
"Vehicles" -> List(item("Bike"), item("Automobile"))
)
val articl
n to your wiki page:
>
> http://wiki.github.com/dpp/liftweb/how-to-unit-test-lift-snippets-wit...
>
> Eric you may want to add a specs version.
>
> Bill
>
>
>
> On Thu, Oct 1, 2009 at 3:03 PM, rstradling wrote:
>
> > Awesome!!! Thanks guys for the help. It now w
Specification {
> > > val session = new LiftSession("", randomString(20), Empty)
> > > val stableTime = now
> > > override def executeExpectations(ex: Examples, t: =>Any): Any = {
> > > S.initIfUninitted(session) {
> > > ...
I have a class called
class Trainer {
def showPeople(xhtml : Group) : NodeSeq = {
val user : User = User.currentUser.open_!
...
}
}
I then want to write a unit test to test that returns proper xml.
The test is written as so
def testValue() = {
val xml =
I am trying to do what is mentioned below but am struggling with the
object side of things for my particular case. This all relates back
to trying to auto-generate some classes that I posted back a while ago
on. I would love to generate 1 file that has the trait and the object
in it that I then
git clone git://github.com/rstradling/DDLtoLiftORM.git is the
location of the git code.
http://github.com/rstradling/DDLtoLiftORM is the web address
I hope this is helpful to others.
On Aug 27, 3:13 pm, rstradling wrote:
> Thanks for the answers everyone. What David hit upon about want
thread with the location.
On Aug 27, 1:35 pm, David Pollak
wrote:
> On Thu, Aug 27, 2009 at 10:26 AM, rstradling wrote:
>
>
>
> > With a parser combinator I wrote to parse .sql and it outputs scala
> > orm files.
>
> Care to share? That'd be a pretty darned u
full grammar (at least that was my
intent :)..
On Aug 27, 1:09 pm, Naftoli Gugenheim wrote:
> How do you auto-generate them?
>
> On Thu, Aug 27, 2009 at 1:03 PM, rstradling wrote:
>
> > I am using Lift 1.0 with the Mapper ORM module from Lift. I am a
> > newbie to Scal
I am using Lift 1.0 with the Mapper ORM module from Lift. I am a
newbie to Scala and Lift. I have auto-generated my ORM classes from
a .sql file. Given that these classes are auto-generated I would
prefer not to edit them directly and provide additional functionality
via inheritance.
Say I have
10 matches
Mail list logo