##// END OF EJS Templates
simplevcs: store rc_extras reference inside the apps itself so it can be used during...
marcink -
r2389:0272fdf5 default
parent child Browse files
Show More
@@ -37,6 +37,8 b' class SimpleSvnApp(object):'
37 IGNORED_HEADERS = [
37 IGNORED_HEADERS = [
38 'connection', 'keep-alive', 'content-encoding',
38 'connection', 'keep-alive', 'content-encoding',
39 'transfer-encoding', 'content-length']
39 'transfer-encoding', 'content-length']
40 rc_extras = {}
41
40
42
41 def __init__(self, config):
43 def __init__(self, config):
42 self.config = config
44 self.config = config
@@ -92,6 +92,7 b' class SimpleVCS(object):'
92 acl_repo_name = None
92 acl_repo_name = None
93 url_repo_name = None
93 url_repo_name = None
94 vcs_repo_name = None
94 vcs_repo_name = None
95 rc_extras = {}
95
96
96 # We have to handle requests to shadow repositories different than requests
97 # We have to handle requests to shadow repositories different than requests
97 # to normal repositories. Therefore we have to distinguish them. To do this
98 # to normal repositories. Therefore we have to distinguish them. To do this
@@ -532,6 +533,7 b' class SimpleVCS(object):'
532 config = self._create_config(extras, self.acl_repo_name)
533 config = self._create_config(extras, self.acl_repo_name)
533 log.debug('HOOKS extras is %s', extras)
534 log.debug('HOOKS extras is %s', extras)
534 app = self._create_wsgi_app(repo_path, self.url_repo_name, config)
535 app = self._create_wsgi_app(repo_path, self.url_repo_name, config)
536 app.rc_extras = extras
535
537
536 try:
538 try:
537 with callback_daemon:
539 with callback_daemon:
General Comments 0
You need to be logged in to leave comments. Login now