##// END OF EJS Templates
vcs: add translation of _REPO_ID into real repo name into more generic...
marcink -
r755:75333e72 default
parent child Browse files
Show More
@@ -242,11 +242,9 b' class SimpleVCS(object):'
242 environ['pylons.status_code_redirect'] = True
242 environ['pylons.status_code_redirect'] = True
243
243
244 # ======================================================================
244 # ======================================================================
245 # EXTRACT REPOSITORY NAME FROM ENV
245 # EXTRACT REPOSITORY NAME FROM ENV SET IN `class VCSMiddleware`
246 # ======================================================================
246 # ======================================================================
247 environ['PATH_INFO'] = self._get_by_id(environ['PATH_INFO'])
247 repo_name = environ['REPO_NAME']
248 repo_name = self._get_repository_name(environ)
249 environ['REPO_NAME'] = repo_name
250 log.debug('Extracted repo name is %s', repo_name)
248 log.debug('Extracted repo name is %s', repo_name)
251
249
252 # check for type, presence in database and on filesystem
250 # check for type, presence in database and on filesystem
@@ -159,7 +159,12 b' class VCSMiddleware(object):'
159 app = SimpleSvn(self.application, self.config, self.registry)
159 app = SimpleSvn(self.application, self.config, self.registry)
160
160
161 if app:
161 if app:
162 # translate the _REPO_ID into real repo NAME for usage
163 # in midddleware
164 environ['PATH_INFO'] = app._get_by_id(environ['PATH_INFO'])
162 repo_name = app._get_repository_name(environ)
165 repo_name = app._get_repository_name(environ)
166 environ['REPO_NAME'] = repo_name
167
163 self.repo_vcs_config = self.vcs_config(repo_name)
168 self.repo_vcs_config = self.vcs_config(repo_name)
164 app.repo_vcs_config = self.repo_vcs_config
169 app.repo_vcs_config = self.repo_vcs_config
165
170
General Comments 0
You need to be logged in to leave comments. Login now