Switch to unified view

a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
...
...
374
        if obj is None: raise KeyError, name
374
        if obj is None: raise KeyError, name
375
        obj.set_context(self, name)
375
        obj.set_context(self, name)
376
        return obj
376
        return obj
377
377
378
    def get_obj_by_path(self, path):
378
    def get_obj_by_path(self, path):
379
        if hasattr(path, 'get'):
380
            path = path['new']
379
        path = path.split('/')
381
        path = path.split('/')
380
        obj = self
382
        obj = self
381
        for p in path:
383
        for p in path:
382
            try:
384
            try:
383
                obj = obj[p]
385
                obj = obj[p]