Switch to unified view

a/Allura/allura/controllers/auth.py b/Allura/allura/controllers/auth.py
...
...
184
        user = plugin.AuthenticationProvider.get(request).login()
184
        user = plugin.AuthenticationProvider.get(request).login()
185
        if return_to and return_to != request.url:
185
        if return_to and return_to != request.url:
186
            redirect(return_to)
186
            redirect(return_to)
187
        redirect('/')
187
        redirect('/')
188
188
189
    @expose()
190
    def refresh_repo(self, *repo_path):
191
        if not repo_path:
192
            return 'No repo specified'
193
        repo_path = '/' + '/'.join(repo_path)
194
        project, rest = h.find_project(repo_path)
195
        if project is None:
196
            return 'No project at %s' % repo_path
197
        if not rest:
198
            return '%s does not include a repo mount point' % repo_path
199
        h.set_context(project.shortname, rest[0])
200
        if c.app is None or not getattr(c.app, 'repo'):
201
            return 'Cannot find repo at %s' % repo_path
202
        g.publish('audit', 'repo.refresh')
203
        return '%r refresh queued.\n' % c.app.repo
189
204
190
    @expose('json:')
205
    @expose('json:')
191
    def repo_permissions(self, repo_path=None, username=None, **kw):
206
    def repo_permissions(self, repo_path=None, username=None, **kw):
192
        """Expects repo_path to be a filesystem path like
207
        """Expects repo_path to be a filesystem path like
193
            <tool>/<project>.<neighborhood>/reponame[.git]
208
            <tool>/<project>.<neighborhood>/reponame[.git]