Mercurial > kallithea
comparison rhodecode/model/db.py @ 2079:477fe54b8af8 beta
fixed sorting of repos in group
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 01 Mar 2012 01:15:14 +0200 |
parents | d9ba58526712 |
children | ecd59c28f432 8ecfed1d8f8b |
comparison
equal
deleted
inserted
replaced
2078:d4b6c8541bd9 | 2079:477fe54b8af8 |
---|---|
805 def full_path_splitted(self): | 805 def full_path_splitted(self): |
806 return self.group_name.split(RepoGroup.url_sep()) | 806 return self.group_name.split(RepoGroup.url_sep()) |
807 | 807 |
808 @property | 808 @property |
809 def repositories(self): | 809 def repositories(self): |
810 return Repository.query().filter(Repository.group == self) | 810 return Repository.query()\ |
811 .filter(Repository.group == self)\ | |
812 .order_by(Repository.repo_name) | |
811 | 813 |
812 @property | 814 @property |
813 def repositories_recursive_count(self): | 815 def repositories_recursive_count(self): |
814 cnt = self.repositories.count() | 816 cnt = self.repositories.count() |
815 | 817 |