From 2a5b743c2e5cb54f4c1bbc99c809223bab75b07f Mon Sep 17 00:00:00 2001 From: Vincent Jacques Date: Wed, 22 Feb 2012 20:52:30 +0000 Subject: [PATCH] Fix after rebase --- github/GithubObjects.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/github/GithubObjects.py b/github/GithubObjects.py index 283fc670..a87e9460 100644 --- a/github/GithubObjects.py +++ b/github/GithubObjects.py @@ -188,9 +188,9 @@ Team = GithubObject( ), Editable( [ "name" ], [ "permission" ] ), Deletable(), - ListOfReferences( "members", NamedUser, addable = True, removable = True, hasable = True ), - ListOfReferences( "repos", Repository, addable = True, removable = True, hasable = True ), + ListAttribute( "members", NamedUser, ListGetable( [], [] ), ElementAddable(), ElementRemovable(), ElementHasable() ), + ListAttribute( "repos", Repository, ListGetable( [], [] ), ElementAddable(), ElementRemovable(), ElementHasable() ), ) -Organization._addAttributePolicy( ListOfObjects( "teams", Team, creatable = True, singularName = "team" ) ) -Repository._addAttributePolicy( ListOfReferences( "teams", Team ) ) +Organization._addAttributePolicy( ListAttribute( "teams", Team, ListGetable( [], [] ), ElementCreatable( "team", [ "name" ], [ "repo_names", "permission" ] ) ) ) +Repository._addAttributePolicy( ListAttribute( "teams", Team, ListGetable( [], [] ) ) )