Changeset - ade3414a8b61
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 15 years ago 2011-02-10 21:56:14
marcin@python-works.com
Fixed problems with repository creation
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/repo.py
Show inline comments
 
@@ -47,14 +47,16 @@ class RepoModel(BaseModel):
 
        try:
 
            from pylons import app_globals
 
            self._base_path = app_globals.base_path
 
        except:
 
            self._base_path = None
 

	
 
        super(RepoModel, self).__init__(sa)
 

	
 
        @property
 
        def base_path():
 
    def base_path(self):
 
            if self._base_path is None:
 
                raise Exception('Base Path is empty, try set this after'
 
                                'class initialization when not having '
 
                                'app_globals available')
 
            return self._base_path
 

	
0 comments (0 inline, 0 general)