Mercurial > kallithea
comparison rhodecode/lib/hooks.py @ 1972:27abf546aa8a beta
#348 added post-create repository hook
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 31 Jan 2012 04:41:00 +0200 |
parents | 89efedac4e6c |
children | 87f0800abc7b |
comparison
equal
deleted
inserted
replaced
1971:3dd89d30cd28 | 1972:27abf546aa8a |
---|---|
121 | 121 |
122 action_logger(username, action, repository, extra_params['ip'], | 122 action_logger(username, action, repository, extra_params['ip'], |
123 commit=True) | 123 commit=True) |
124 | 124 |
125 return 0 | 125 return 0 |
126 | |
127 | |
128 def log_create_repository(repository_dict, created_by, **kwargs): | |
129 """ | |
130 Post create repository Hook. This is a dummy function for admins to re-use | |
131 if needed | |
132 | |
133 :param repository: dict dump of repository object | |
134 :param created_by: username who created repository | |
135 :param created_date: date of creation | |
136 | |
137 available keys of repository_dict: | |
138 | |
139 'repo_type', | |
140 'description', | |
141 'private', | |
142 'created_on', | |
143 'enable_downloads', | |
144 'repo_id', | |
145 'user_id', | |
146 'enable_statistics', | |
147 'clone_uri', | |
148 'fork_id', | |
149 'group_id', | |
150 'repo_name' | |
151 | |
152 """ | |
153 | |
154 | |
155 return 0 |