Switch to unified view

a/Allura/allura/model/index.py b/Allura/allura/model/index.py
...
...
87
    re_link_1 = re.compile(r'\s' + _core_re, re.VERBOSE)
87
    re_link_1 = re.compile(r'\s' + _core_re, re.VERBOSE)
88
    re_link_2 = re.compile(r'^' +  _core_re, re.VERBOSE)
88
    re_link_2 = re.compile(r'^' +  _core_re, re.VERBOSE)
89
89
90
    def __repr__(self):
90
    def __repr__(self):
91
        with h.push_context(self.project_id):
91
        with h.push_context(self.project_id):
92
            if self.app_config:
92
            return '[%s:%s:%s] -> %s' % (
93
                return '[%s:%s:%s] -> %s' % (
93
                self.project.shortname,
94
                    self.project.shortname,
94
                self.app_config.options.mount_point,
95
                    self.app_config.options.mount_point,
95
                self.link,
96
                    self.link,
96
                self.ref_id)
97
                    self.ref_id)
97
98
            else:
99
                return '[%s:*:%s] -> %s' % (
100
                    self.project.shortname,
101
                    self.link,
102
                    self.ref_id)
98
    @classmethod
103
    @classmethod
99
    def lookup(cls, link):
104
    def lookup(cls, link):
100
        return cls.from_links(link)[link]
105
        return cls.from_links(link)[link]
101
106
102
    @classmethod
107
    @classmethod