Remove some unused model methods.

This commit is contained in:
yackob03 2013-10-31 17:36:53 -04:00
parent 621f89f826
commit b92fe17e3c

View file

@ -415,12 +415,6 @@ def delete_all_repository_tags(namespace_name, repository_name):
RepositoryTag.delete().where(RepositoryTag.repository == repo)
def get_user_repo_permissions(user, repository):
select = RepositoryPermission.select()
return select.where(RepositoryPermission.user == user,
RepositoryPermission.repository == repository)
def user_permission_repo_query(username, namespace_name, repository_name):
selected = RepositoryPermission.select(User, Repository, Role,
RepositoryPermission)
@ -554,14 +548,6 @@ def load_token_data(code):
raise InvalidTokenException('Invalid delegate token code: %s' % code)
def get_repository_build(request_dbid):
try:
return RepositoryBuild.get(RepositoryBuild.id == request_dbid)
except RepositoryBuild.DoesNotExist:
msg = 'Unable to locate a build by id: %s' % request_dbid
raise InvalidRepositoryBuildException(msg)
def list_repository_builds(namespace_name, repository_name,
include_inactive=True):
joined = RepositoryBuild.select().join(Repository)