OK, I'm actually doing that in my CRUDOps with a partial function, so that sounds like one of the use cases I've already covered.
Thanks, Derek On Tue, Nov 24, 2009 at 11:56 AM, Peter Robinett <pe...@bubblefoundry.com>wrote: > We've built an access control system that uses an If LocParam to > enforce whether the current user can access the requested location. > > Peter > > On Nov 24, 10:12 am, Derek Chen-Becker <dchenbec...@gmail.com> wrote: > > Just curious, but what are you using the LocParams for in this case? I'm > > writing my own CRUDOps trait that takes a different approach to > permissions > > and menus, so I'm trying to figure out the use cases besides my own. > > > > Thanks, > > > > Derek > > > > On Tue, Nov 24, 2009 at 11:01 AM, Peter Robinett < > pe...@bubblefoundry.com>wrote: > > > > > I had this exact need for deleteMenuLocParams the other day. I'd love > > > to see this added! > > > > > Peter Robinett > > > > > On Nov 24, 5:40 am, David Pollak <feeder.of.the.be...@gmail.com> > > > wrote: > > > > On Tue, Nov 24, 2009 at 1:03 AM, tommycli <tommy...@ucla.edu> wrote: > > > > > Amazing - great. For future reference - what's the preferred method > > > > > for asking for code/feature to be integrated? > > > > > > Discuss on this list, once everyone is happy, open a ticket at > GitHub. > > > > > > > On Nov 23, 9:46 pm, Ross Mellgren <dri...@gmail.com> wrote: > > > > > > Added an issue for you: > > >http://github.com/dpp/liftweb/issues#issue/205 > > > > > > and it's on review board:http://reviewboard.liftweb.net/r/121/ > > > > > > > > So it will (probably) be in 1.1-SNAPSHOT in a day or two, > assuming > > > the > > > > > change isn't unacceptable for whatever reason. > > > > > > > > -Ross > > > > > > > > On Nov 23, 2009, at 11:50 PM, tommycli wrote: > > > > > > > > > Add deleteMenuLocParams to CRUDify. > > > > > > > > > Patch below. (I tried github, but you guys don't pull > apparently). > > > > > > > > > <pre> > > > > > > > diff --git > > > a/lift-persistence/lift-mapper/src/main/scala/net/liftweb/ > > > > > > > mapper/CRUDify.scala > > > b/lift-persistence/lift-mapper/src/main/scala/net/ > > > > > > > liftweb/mapper/CR > > > > > > > index 21e5a3b..5aae123 100644 > > > > > > > --- > > > a/lift-persistence/lift-mapper/src/main/scala/net/liftweb/mapper/ > > > > > > > CRUDify.scala > > > > > > > +++ > > > b/lift-persistence/lift-mapper/src/main/scala/net/liftweb/mapper/ > > > > > > > CRUDify.scala > > > > > > > @@ -265,7 +265,7 @@ trait CRUDify[KeyType, CrudType <: > KeyedMapper > > > > > > > [KeyType, CrudType]] { > > > > > > > > > def defaultValue = Empty > > > > > > > > > - def params = Nil > > > > > > > + def params = deleteMenuLocParams > > > > > > > > > /** > > > > > > > * What's the text of the link? > > > > > > > @@ -297,6 +297,11 @@ trait CRUDify[KeyType, CrudType <: > KeyedMapper > > > > > > > [KeyType, CrudType]] { > > > > > > > })) > > > > > > > } > > > > > > > > > + /** > > > > > > > + * Override to include new Params for the show all menu > > > > > > > + */ > > > > > > > + def deleteMenuLocParams: List[Loc.AnyLocParam] = Nil > > > > > > > + > > > > > > > def deleteMenuName = S.??("Delete")+" "+displayName > > > > > > > > > def deleteTemplate(): NodeSeq = pageWrapper(_deleteTemplate) > > > > > > > </pre> > > > > > > > > > -- > > > > > > > > > You received this message because you are subscribed to the > Google > > > > > Groups "Lift" group. > > > > > > > To post to this group, send email to lift...@googlegroups.com. > > > > > > > To unsubscribe from this group, send email to > > > > > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> > <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com> > > > > > <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com> > <liftweb%252bunsubscr...@googlegroups.com<liftweb%25252bunsubscr...@googlegroups.com> > > > > > > > > > . > > > > > > > For more options, visit this group athttp:// > > > > > groups.google.com/group/liftweb?hl=en. > > > > > > > -- > > > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "Lift" group. > > > > > To post to this group, send email to lift...@googlegroups.com. > > > > > To unsubscribe from this group, send email to > > > > > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> > <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com> > > > > > <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com> > <liftweb%252bunsubscr...@googlegroups.com<liftweb%25252bunsubscr...@googlegroups.com> > > > > > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/liftweb?hl=en. > > > > > > -- > > > > 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 lift...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> > <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/liftweb?hl=en. > > -- > > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@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.