comparison rhodecode/model/db.py @ 2092:ecd59c28f432

merged beta into stable
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 02 Mar 2012 21:57:01 +0200
parents 9ab21c5ddb84 477fe54b8af8
children dc2584ba5fbc
comparison
equal deleted inserted replaced
2074:6c6718c06ea2 2092:ecd59c28f432
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