>> > I haven't tried it, but it looks like you should be able to just add an >> > "identity.require" line to your config sections. >> >> I thought I knew the identity framework in TG1 pretty well but I never >> noticed this functionality. Amazing! I don't think this is documented >> anywhere in the official docs. I'm opening a ticket now... >> >> > See: >> > The SecureObject class in turbogears.identity.conditions >> > http://trac.turbogears.org/changeset/552 >> > http://nerd.metrocat.org/2006/01/refining-the-identity-framework >> >> Wow, where did you dig up that article?! Almost from the prehistoric age >> of TurboGears ;) Interestingly, Jeff seems to claim that SecureObject >> should protect a whole controller tree too, not only SecureResource. If >> that is so, it sheds a new light on #2207. >> >> >> Chris >> >> > I knew it would be a good question since it was from Daniel, so I went > digging. I saw the reference to an identity.require config setting in > turbogears.identity.conditions right away but couldn't find any docs so I > went googling. > > After reading a related thread, where Kevin Horn asked about moving identity > predicates from controller code to config [1], I was able to narrow the > search down to postings from Jeff Watkins. That led me to his blog. > > If those days weren't prehistoric, they were at least the wild west. :-)
Thanks a lot Ken! When this problem came up I thought this must be dead easy, went through the docs but didn't find anything, which kind of gave me the I-thought-I-knew-more-or-less-how-tg1-identity-works,-but-apparently-I-don't moment Chris was describing :) But I had no leads from there on, so thanks again for digging this up. Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

