##// 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 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'])
248 repo_name = self._get_repository_name(environ)
249 environ['REPO_NAME'] = repo_name
247 repo_name = environ['REPO_NAME']
250 248 log.debug('Extracted repo name is %s', repo_name)
251 249
252 250 # check for type, presence in database and on filesystem
@@ -159,7 +159,12 b' class VCSMiddleware(object):'
159 159 app = SimpleSvn(self.application, self.config, self.registry)
160 160
161 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 165 repo_name = app._get_repository_name(environ)
166 environ['REPO_NAME'] = repo_name
167
163 168 self.repo_vcs_config = self.vcs_config(repo_name)
164 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