trac.versioncontrol.svn_authz¶
-
class
trac.versioncontrol.svn_authz.AuthzSourcePolicy¶ Bases:
trac.core.ComponentPermission policy for
source:andchangeset:resources using a Subversion authz file.FILE_VIEWandBROWSER_VIEWpermissions are granted as specified in the authz file.CHANGESET_VIEWpermission is granted for changesets whereFILE_VIEWis 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
AuthzSourcePolicypermission policy must be added to[trac] permission_policies. Non-absolute paths are relative to the Environmentconfdirectory.
-
authz_module_name¶ The module prefix used in the
authz_filefor 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
modulesare retained.