comparison rhodecode/model/db.py @ 1727:8e9f51091229 beta

fixed caching query on repos path - small fixes to caching query
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 26 Nov 2011 03:01:08 +0200
parents 64e91067b996
children 07e56179633e
comparison
equal deleted inserted replaced
1726:fe8c2e881403 1727:8e9f51091229
571 Returns base full path for that repository means where it actually 571 Returns base full path for that repository means where it actually
572 exists on a filesystem 572 exists on a filesystem
573 """ 573 """
574 q = Session().query(RhodeCodeUi).filter(RhodeCodeUi.ui_key == 574 q = Session().query(RhodeCodeUi).filter(RhodeCodeUi.ui_key ==
575 Repository.url_sep()) 575 Repository.url_sep())
576 q.options(FromCache("sql_cache_short", "repository_repo_path")) 576 q = q.options(FromCache("sql_cache_short", "repository_repo_path"))
577 return q.one().ui_value 577 return q.one().ui_value
578 578
579 @property 579 @property
580 def repo_full_path(self): 580 def repo_full_path(self):
581 p = [self.repo_path] 581 p = [self.repo_path]