Show More
@@ -50,13 +50,15 b' class RepoModel(BaseModel):' | |||
|
50 | 50 | except: |
|
51 | 51 | self._base_path = None |
|
52 | 52 | |
|
53 | @property | |
|
54 | def base_path(): | |
|
55 | if self._base_path is None: | |
|
56 | raise Exception('Base Path is empty, try set this after' | |
|
57 | 'class initialization when not having ' | |
|
58 | 'app_globals available') | |
|
59 | return self._base_path | |
|
53 | super(RepoModel, self).__init__(sa) | |
|
54 | ||
|
55 | @property | |
|
56 | def base_path(self): | |
|
57 | if self._base_path is None: | |
|
58 | raise Exception('Base Path is empty, try set this after' | |
|
59 | 'class initialization when not having ' | |
|
60 | 'app_globals available') | |
|
61 | return self._base_path | |
|
60 | 62 | |
|
61 | 63 | super(RepoModel, self).__init__() |
|
62 | 64 |
General Comments 0
You need to be logged in to leave comments.
Login now