##// END OF EJS Templates
models: drop unused is_valid method.
marcink -
r2517:c4ffe0d9 stable
parent child Browse files
Show More
@@ -1761,18 +1761,6 b' class Repository(Base, BaseModel):'
1761 return q.one().ui_value
1761 return q.one().ui_value
1762
1762
1763 @classmethod
1763 @classmethod
1764 def is_valid(cls, repo_name):
1765 """
1766 returns True if given repo name is a valid filesystem repository
1767
1768 :param cls:
1769 :param repo_name:
1770 """
1771 from rhodecode.lib.utils import is_valid_repo
1772
1773 return is_valid_repo(repo_name, cls.base_path())
1774
1775 @classmethod
1776 def get_all_repos(cls, user_id=Optional(None), group_id=Optional(None),
1764 def get_all_repos(cls, user_id=Optional(None), group_id=Optional(None),
1777 case_insensitive=True):
1765 case_insensitive=True):
1778 q = Repository.query()
1766 q = Repository.query()
General Comments 0
You need to be logged in to leave comments. Login now