trac.versioncontrol.svn_authz
¶
-
class
trac.versioncontrol.svn_authz.
AuthzSourcePolicy
¶ Bases:
trac.core.Component
Permission policy for
source:
andchangeset:
resources using a Subversion authz file.FILE_VIEW
andBROWSER_VIEW
permissions are granted as specified in the authz file.CHANGESET_VIEW
permission is granted for changesets whereFILE_VIEW
is granted on at least one modified file, as well as for empty changesets.-
authz_file
¶ The path to the Subversion [%(svnbook)s authorization (authz) file]. To enable authz permission checking, the
AuthzSourcePolicy
permission policy must be added to[trac] permission_policies
. Non-absolute paths are relative to the Environmentconf
directory.
-
authz_module_name
¶ The module prefix used in the
authz_file
for the default repository. If left empty, the global section is used.
-
-
trac.versioncontrol.svn_authz.
parse
(authz_file, modules)¶ Parse a Subversion authorization file.
Return a dict of modules, each containing a dict of paths, each containing a dict mapping users to permissions. Only modules contained in
modules
are retained.