diff rhodecode/lib/base.py @ 1530:04027bdb876c beta

Refactoring of model get functions
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 08 Oct 2011 02:02:25 +0200
parents 66f03a87141c
children 6f06daeed294 59ae82850e76 bdb6fbc8265f
line wrap: on
line diff
--- a/rhodecode/lib/base.py	Fri Oct 07 23:17:45 2011 +0200
+++ b/rhodecode/lib/base.py	Sat Oct 08 02:02:25 2011 +0200
@@ -67,7 +67,7 @@
         super(BaseRepoController, self).__before__()
         if c.repo_name:
 
-            c.rhodecode_db_repo = Repository.by_repo_name(c.repo_name)
+            c.rhodecode_db_repo = Repository.get_by_repo_name(c.repo_name)
             c.rhodecode_repo = c.rhodecode_db_repo.scm_instance
 
             if c.rhodecode_repo is None: