Fix after rebase

This commit is contained in:
Vincent Jacques
2012-02-23 19:42:09 +00:00
parent 3825a71ec2
commit 2a5b743c2e
+4 -4
View File
@@ -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( [], [] ) ) )