[Lift] Re: lifecycle callbacks in record

2010-02-11 Thread harryh
Tim (Nelson) You can expect a ping from me about some stuff I've added getting pulled back into the main branch. It's all pretty small. 1) Implemeted bulkDelete_!! 2) Some stuff to make List fields work a bit better when they are a List[DBRecord] 3) Some code for special handling of optional fie

Re: [Lift] Re: lifecycle callbacks in record

2010-02-11 Thread Tim Nelson
At some point I would love to. I'm not sure it's quite ready for that yet though. As soon as I finish the project I'm working on, I hope to be able to spend some more time on it. There are still some things that I haven't implemented and I want to look closer at the code you wrote for couch-db and

Re: [Lift] Re: lifecycle callbacks in record

2010-02-11 Thread Timothy Perrett
Oh thats epic. I didnt know that even existed... Lots of cool little projects kicking up at the moment! Cheers, Tim On 11 Feb 2010, at 22:17, harryh wrote: >> Yeah that would be a bit of a problem!! Out of interest, what Record backend >> are you trying to use? > > http://wiki.github.com/el

Re: [Lift] Re: lifecycle callbacks in record

2010-02-11 Thread Ross Mellgren
Hey Tim (Nelson), Have you thought about bringing scamongo in as part of Lift? -Ross On Feb 11, 2010, at 5:24 PM, Tim Nelson wrote: > You should note that only the save and delete callbacks have been > implemented, but I haven't tested them. > > If you have other requirements, let me know and

Re: [Lift] Re: lifecycle callbacks in record

2010-02-11 Thread Tim Nelson
You should note that only the save and delete callbacks have been implemented, but I haven't tested them. If you have other requirements, let me know and I can look into it and any feedback is welcome. Tim aka http://wiki.github.com/eltimn/ On Thu, Feb 11, 2010 at 4:17 PM, harryh wrote: >> Yeah

[Lift] Re: lifecycle callbacks in record

2010-02-11 Thread harryh
> Yeah that would be a bit of a problem!! Out of interest, what Record backend > are you trying to use? http://wiki.github.com/eltimn/scamongo/ Which needs some work (I have a fork on my local machine that I'm tinkering with), but mostly seems to be getting the job done. -harryh -- You receiv

[Lift] Re: lifecycle callbacks in record

2010-02-11 Thread harryh
> Do we have to move the common pieces of Mapper and Record into a common > package? We don't have to as I have just changed my code to do with net.lifetweb.record.LifecycleCallbacks and everything is now works fine. It might be worth considering though so no one else has the same problem I did.

Re: [Lift] Re: lifecycle callbacks in record

2010-02-11 Thread Timothy Perrett
LOL Yeah that would be a bit of a problem!! Out of interest, what Record backend are you trying to use? Cheers, Tim On 11 Feb 2010, at 21:57, harryh wrote: > OK kids. Here's a lesson for you. Don't mix Mapper and Record in the > same file! Cause if you do, you might do something like this: >

Re: [Lift] Re: lifecycle callbacks in record

2010-02-11 Thread David Pollak
On Thu, Feb 11, 2010 at 1:57 PM, harryh wrote: > OK kids. Here's a lesson for you. Don't mix Mapper and Record in the > same file! Cause if you do, you might do something like this: > > class MCheckin extends MongoRecord[MCheckin] with MongoId[MCheckin] > with LifecycleCallbacks { > } > > and won

[Lift] Re: lifecycle callbacks in record

2010-02-11 Thread harryh
OK kids. Here's a lesson for you. Don't mix Mapper and Record in the same file! Cause if you do, you might do something like this: class MCheckin extends MongoRecord[MCheckin] with MongoId[MCheckin] with LifecycleCallbacks { } and wonder why the #$%^&*( the callbacks aren't being called. But the