diff options
| author | Steve Piercy <web@stevepiercy.com> | 2016-06-09 01:18:58 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2016-06-09 01:18:58 -0700 |
| commit | 226cb6f342f2bd1056a2c31d8b482ce13d56ea84 (patch) | |
| tree | 91fed0e31dac53e64be95b664c91225abf9180b4 /docs/narr | |
| parent | f0f4a3081be10c94332e81ff59bea94ad6559316 (diff) | |
| parent | bb800f2cd7424c6280a7346303963d0f0daed935 (diff) | |
| download | pyramid-226cb6f342f2bd1056a2c31d8b482ce13d56ea84.tar.gz pyramid-226cb6f342f2bd1056a2c31d8b482ce13d56ea84.tar.bz2 pyramid-226cb6f342f2bd1056a2c31d8b482ce13d56ea84.zip | |
Merge pull request #2624 from mike-perdide/patch-1
Adding a warning discouraging use of __acl__ properties attributes
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/security.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/narr/security.rst b/docs/narr/security.rst index 7cbea113c..842aad23f 100644 --- a/docs/narr/security.rst +++ b/docs/narr/security.rst @@ -290,6 +290,13 @@ properties of the instance. def __init__(self, owner): self.owner = owner +.. warning:: + + Writing ``__acl__`` as properties is discouraged, as AttributeErrors + occuring in ``fget`` or ``fset`` will be silently dismissed (this is consistent + with Python ``getattr`` and ``hasattr`` behaviors). For dynamic ACLs, simply use + callables, as documented above. + .. index:: single: ACE single: access control entry |
