Switch to unified view

a/Allura/allura/controllers/project.py b/Allura/allura/controllers/project.py
...
...
67
        project = M.Project.query.get(shortname=self.prefix + pname, neighborhood_id=self.neighborhood._id)
67
        project = M.Project.query.get(shortname=self.prefix + pname, neighborhood_id=self.neighborhood._id)
68
        if project is None and self.prefix == 'u/':
68
        if project is None and self.prefix == 'u/':
69
            # create user-project if it is missing
69
            # create user-project if it is missing
70
            user = M.User.query.get(username=pname)
70
            user = M.User.query.get(username=pname)
71
            if user:
71
            if user:
72
                project = self.neighborhood.register_project('u/' + user.username, user=user, user_project=True)
72
                project = self.neighborhood.register_project(
73
                    plugin.AuthenticationProvider.get(request).user_project_shortname(user),
74
                    user=user, user_project=True)
73
        if project is None:
75
        if project is None:
74
            # look for neighborhood tools matching the URL
76
            # look for neighborhood tools matching the URL
75
            project = self.neighborhood.neighborhood_project
77
            project = self.neighborhood.neighborhood_project
76
            c.project = project
78
            c.project = project
77
            return ProjectController()._lookup(pname, *remainder)
79
            return ProjectController()._lookup(pname, *remainder)