Mercurial > kallithea
changeset 1556:1efca2908ae4 beta
fixes issue #248 cannot edit repos inside a group on windows
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 13 Oct 2011 04:26:43 +0200 |
parents | da2e3505b880 |
children | ad6f892f3134 |
files | rhodecode/model/db.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/model/db.py Thu Oct 13 03:20:28 2011 +0200 +++ b/rhodecode/model/db.py Thu Oct 13 04:26:43 2011 +0200 @@ -511,8 +511,8 @@ q = Session.query(cls).filter(cls.repo_name == repo_name) q = q.options(joinedload(Repository.fork))\ - .options(joinedload(Repository.user))\ - .options(joinedload(Repository.group))\ + .options(joinedload(Repository.user))\ + .options(joinedload(Repository.group))\ return q.one() @@ -534,7 +534,7 @@ @property def just_name(self): - return self.repo_name.split(os.sep)[-1] + return self.repo_name.split(Repository.url_sep())[-1] @property def groups_with_parents(self):