擅长:python、mysql、java
<p><code>manage_permission</code>的第三个参数告诉我们此权限是否也从父文件夹继承:</p>
<pre><code>def manage_permission(permission_to_manage, roles=[], acquire=0):
"""Change the settings for the given permission.
If optional arg acquire is true, then the roles for the permission
are acquired, in addition to the ones specified, otherwise the
permissions are restricted to only the designated roles.
"""
</code></pre>
<p>(<code>AccessControl/interfaces.py</code>)</p>