Thanks for the replies. I created a trait that overrides writePermission_? called ReadOnly that I mix into each field and I overrided ( overrid? whats the past tense of override? huh.. ) the db_can_delete method in the object to always return false. I am not sure if this will be a good solution but if it works I will write a blog post about it.
Thanks again for the quick responses! -Andy On Sep 24, 4:49 pm, Thomas Rampelberg <pyronic...@gmail.com> wrote: > Ahhha, I guess I've not been trying to actually delete any fields. Thanks! > > On Thu, Sep 24, 2009 at 4:48 PM, David Pollak > > > > <feeder.of.the.be...@gmail.com> wrote: > > > On Thu, Sep 24, 2009 at 4:46 PM, Thomas Rampelberg <pyronic...@gmail.com> > > wrote: > > >> David, just to make sure that I know what I'm talking about, if you > >> set writePermission_? to false for each field, you could emulate the > >> behavior? > > > I don't think so, because you can still delete a record. > > >> On Thu, Sep 24, 2009 at 4:41 PM, David Pollak > >> <feeder.of.the.be...@gmail.com> wrote: > >> > There's no read-only support for tables in mapper at this time. Sorry. > > >> > On Thu, Sep 24, 2009 at 2:52 PM, andythedestroyer > >> > <andythedestro...@gmail.com> wrote: > > >> >> This may be obvious but I am having trouble setting this up. > > >> >> I need to map a database view which isn't a problem because I just set > >> >> it up as I would any other table. Can I specify in the code that the > >> >> class and object mapping the view is read only and cannot be modified? > >> >> It doesn't seem like I can and I want to verify this is the case. > > >> >> Thanks, > >> >> Andrew > > >> > -- > >> > Lift, the simply functional web frameworkhttp://liftweb.net > >> > Beginning Scalahttp://www.apress.com/book/view/1430219890 > >> > Follow me:http://twitter.com/dpp > >> > Surf the harmonics > > > -- > > Lift, the simply functional web frameworkhttp://liftweb.net > > Beginning Scalahttp://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 liftweb@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 -~----------~----~----~----~------~----~------~--~---