'Given a repository name and owner, return the type.'

@web.expose
def get_repository_type(self, trans, **kwd):

    repository_name = kwd['name']
    repository_owner = kwd['owner']
    repository = repository_util.get_repository_by_name_and_owner(trans.app, repository_name, repository_owner)
    return str(repository.type)
