Show More
@@ -1957,6 +1957,7 b' class Repository(Base, BaseModel):' | |||||
1957 | return clone_uri |
|
1957 | return clone_uri | |
1958 |
|
1958 | |||
1959 | def clone_url(self, **override): |
|
1959 | def clone_url(self, **override): | |
|
1960 | from rhodecode.model.settings import SettingsModel | |||
1960 |
|
1961 | |||
1961 | uri_tmpl = None |
|
1962 | uri_tmpl = None | |
1962 | if 'with_id' in override: |
|
1963 | if 'with_id' in override: | |
@@ -1969,14 +1970,9 b' class Repository(Base, BaseModel):' | |||||
1969 |
|
1970 | |||
1970 | # we didn't override our tmpl from **overrides |
|
1971 | # we didn't override our tmpl from **overrides | |
1971 | if not uri_tmpl: |
|
1972 | if not uri_tmpl: | |
1972 | uri_tmpl = self.DEFAULT_CLONE_URI |
|
1973 | rc_config = SettingsModel().get_all_settings(cache=True) | |
1973 | try: |
|
1974 | uri_tmpl = rc_config.get( | |
1974 | from pylons import tmpl_context as c |
|
1975 | 'rhodecode_clone_uri_tmpl') or self.DEFAULT_CLONE_URI | |
1975 | uri_tmpl = c.clone_uri_tmpl |
|
|||
1976 | except Exception: |
|
|||
1977 | # in any case if we call this outside of request context, |
|
|||
1978 | # ie, not having tmpl_context set up |
|
|||
1979 | pass |
|
|||
1980 |
|
1976 | |||
1981 | request = get_current_request() |
|
1977 | request = get_current_request() | |
1982 | return get_clone_url(request=request, |
|
1978 | return get_clone_url(request=request, |
General Comments 0
You need to be logged in to leave comments.
Login now