From a2d51ac9f9ef5353bc2ffa9e95802cf8379f15db Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 28 2014 14:08:36 +0000 Subject: Add method in the web-app to create the gitolite configuration file --- diff --git a/progit/__init__.py b/progit/__init__.py index f0319f2..dfa8f17 100644 --- a/progit/__init__.py +++ b/progit/__init__.py @@ -105,6 +105,13 @@ def is_repo_admin(repo_obj): return user == repo_obj.user or user in repo_obj.users +def generate_gitolite_acls(): + """ Generate the gitolite configuration file for all repos + """ + progit.lib.generate_gitolite_acls( + SESSION, flask.config['GITOLITE_CONFIG']) + + def cla_required(function): """ Flask decorator to retrict access to CLA signed user. To use this decorator you need to have a function named 'auth_login'.