hey guys,

I was wondering if anyone has ever does a formulaic permissions thing in 
django.

something where you can define user permissions for certain actions, 
depending on the various attributes of an object. Think something like:

def can_view(user):

if self.is_private and self.owner.preferences.friends_can_see_private:
        return True
else:
        if user in self.owner.blacklist:
                return False

etc etc etc. But this in a generic way for multiple actions (view, edit, 
comment, favorite, ...). The idea being that with many users it's 
impossible to store this kind of information in the database.

If anyone has *any* hints (as vague as u like) on how to do this, help 
would be greatly appreciated.


  - bram

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to