On Tue, Sep 15, 2009 at 9:21 PM, Daniel Fetchinson < [email protected]> wrote:
> > [/static1] > static_filter.on = True > static_filter.dir = '%(top_level_dir)s/static1' > > [/static2] > static_filter.on = True > static_filter.dir = '%(top_level_dir)s/static2' > > But where do I define who is exactly allowed access to /static1 and > /static2? In particular I'd like to allow users in group A to access > only /static1 and users in group B to access both /static1 and > /static2. Where do I need to put the code corresponding to these > predicates? > > Cheers, > Daniel > I haven't tried it, but it looks like you should be able to just add an "identity.require" line to your config sections. See: The SecureObject class in turbogears.identity.conditions http://trac.turbogears.org/changeset/552 http://nerd.metrocat.org/2006/01/refining-the-identity-framework hth, -Ken --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

