Switch to unified view

a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
...
...
110
        return id.replace('.', '/')
110
        return id.replace('.', '/')
111
111
112
    @LazyProperty
112
    @LazyProperty
113
    def legacy(self):
113
    def legacy(self):
114
        return Object(object_id=self._id)
114
        return Object(object_id=self._id)
115
116
    @property
117
    def object_id(self):
118
        return self._id
115
119
116
class Commit(RepoObject):
120
class Commit(RepoObject):
117
    # Ephemeral attrs
121
    # Ephemeral attrs
118
    repo=None
122
    repo=None
119
123
...
...
227
        name = None
231
        name = None
228
        text = ''
232
        text = ''
229
        for x in self.blob_ids:
233
        for x in self.blob_ids:
230
            if README_RE.match(x.name):
234
            if README_RE.match(x.name):
231
                name = x.name
235
                name = x.name
236
                obj = Object(
237
                    object_id=x.id,
238
                    path=lambda:self.path() + x['name'],
239
                    commit=Object(
240
                        object_id=self.commit._id))
232
                text = self.repo.open_blob(Object(object_id=x.id)).read()
241
                text = self.repo.open_blob(obj).read()
233
                text = h.really_unicode(text)
242
                text = h.really_unicode(text)
234
                break
243
                break
235
        if text == '':
244
        if text == '':
236
            text = '<p><em>Empty File</em></p>'
245
            text = '<p><em>Empty File</em></p>'
237
        else:
246
        else: