comparison rhodecode/lib/middleware/simplegit.py @ 2858:dd2d5b65cae9 beta

Also export config filename via extras.config in simplegit middleware (juste like for the simplehg one)
author Vincent Caron <vcaron@bearstech.com>
date Thu, 20 Sep 2012 15:35:55 +0200
parents aa17c7a1b8a5
children ccbdff90e5a0
comparison
equal deleted inserted replaced
2857:bad89b2fe618 2858:dd2d5b65cae9
186 if perm is not True: 186 if perm is not True:
187 return HTTPForbidden()(environ, start_response) 187 return HTTPForbidden()(environ, start_response)
188 188
189 # extras are injected into UI object and later available 189 # extras are injected into UI object and later available
190 # in hooks executed by rhodecode 190 # in hooks executed by rhodecode
191 from rhodecode import CONFIG
191 extras = { 192 extras = {
192 'ip': ipaddr, 193 'ip': ipaddr,
193 'username': username, 194 'username': username,
194 'action': action, 195 'action': action,
195 'repository': repo_name, 196 'repository': repo_name,
196 'scm': 'git', 197 'scm': 'git',
198 'config': CONFIG['__file__'],
197 'make_lock': None, 199 'make_lock': None,
198 'locked_by': [None, None] 200 'locked_by': [None, None]
199 } 201 }
200 202
201 #=================================================================== 203 #===================================================================