On Mon, 2011-09-05 at 12:44 -0700, Brian wrote:
> Chris,
> 
> Thanks for the reply. One more question...
> 
> Is it acceptable for __acl__ to be a callable associated with an
> instance?
> 
> def  __acl__(self):
>   return [
>     (Allow, 'user:%s' % self.owner, 'edit'),
>   ]

No, it must be an attribute, but you can use a property to turn it into
a callable, e.g.:

@property
def  __acl__(self):
    return [
        (Allow, 'user:%s' % self.owner, 'edit'),
     ]

- C


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to