Add team attributes, edit parameters, and links in reference documentation

This commit is contained in:
Vincent Jacques
2012-02-23 19:42:08 +00:00
parent 30e0296711
commit 3825a71ec2
3 changed files with 10 additions and 7 deletions
+4 -4
View File
@@ -181,12 +181,12 @@ Organization._addAttributePolicy( MethodFromCallable( "create_fork", __createFor
Team = GithubObject(
"Team",
BaseUrl( lambda obj: "/teams/" + obj.id ),
Identity( lambda obj: obj.id ),
BaseUrl( lambda obj: "/teams/" + str( obj.id ) ),
Identity( lambda obj: str( obj.id ) ),
BasicAttributes(
### @todo
"url", "name", "id", "permission", "members_count", "repos_count",
),
Editable( [], [] ), ### @todo
Editable( [ "name" ], [ "permission" ] ),
Deletable(),
ListOfReferences( "members", NamedUser, addable = True, removable = True, hasable = True ),
ListOfReferences( "repos", Repository, addable = True, removable = True, hasable = True ),