Re: Custom ACL

2008-12-14 Thread bruno desthuilliers
On 14 déc, 22:49, bruno desthuilliers wrote: (snip) > Else, you can always monkeypatch the User model. You may then want to > use the descriptor protocol (http://docs.python.org/reference/ > datamodel.html#descriptors) More here on descriptors: http://users.rcn.com/python/download/Descriptor.htm

Re: Custom ACL

2008-12-14 Thread bruno desthuilliers
On 14 déc, 15:26, Yanik wrote: > Hello, > > I need to build a custom ACL for the app I'm working on, Django's > isn't specific enough (I need to give permissions based on IDs, > statuses, etc.). > > I'd also like to attach it to the user, so that

Re: Custom ACL

2008-12-14 Thread Yanik
Thanks, but this is to manipulate Posix ACL (user ACL on the actual OS). On Dec 14, 2:06 pm, "Ramdas S" wrote: > http://pylibacl.sourceforge.net/ > > check this > > Might help > > > > On Sun, Dec 14, 2008 at 7:56 PM, Yanik wrote: > > > Hello, >

Re: Custom ACL

2008-12-14 Thread Ramdas S
http://pylibacl.sourceforge.net/ check this Might help On Sun, Dec 14, 2008 at 7:56 PM, Yanik wrote: > > Hello, > > I need to build a custom ACL for the app I'm working on, Django's > isn't specific enough (I need to give permissions based on IDs, > stat

Custom ACL

2008-12-14 Thread Yanik
Hello, I need to build a custom ACL for the app I'm working on, Django's isn't specific enough (I need to give permissions based on IDs, statuses, etc.). I'd also like to attach it to the user, so that I could lookup in a way something like User.acl.has_permission(post_id, &