[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-19 Thread rstradling
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

[Lift] Bind with a map collection

2009-10-06 Thread rstradling
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

[Lift] Re: Testing snippets that depend on a user logged in

2009-10-02 Thread rstradling
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

[Lift] Re: Testing snippets that depend on a user logged in

2009-10-01 Thread rstradling
Specification { > > >   val session = new LiftSession("", randomString(20), Empty) > > >   val stableTime = now > > >   override def executeExpectations(ex: Examples, t: =>Any): Any = { > > >     S.initIfUninitted(session) { > > >       ...

[Lift] Testing snippets that depend on a user logged in

2009-10-01 Thread rstradling
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 =

[Lift] Re: Mapper subclasses

2009-09-08 Thread rstradling
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

[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-27 Thread rstradling
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

[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-27 Thread rstradling
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

[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-27 Thread rstradling
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

[Lift] Newbie Question design pattern for ORM in Lift

2009-08-27 Thread rstradling
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