From fb38f79069427c3aafe338a31435ca75ee5e6e9a Mon Sep 17 00:00:00 2001 From: Vincent Jacques Date: Mon, 13 Feb 2012 22:46:02 +0100 Subject: [PATCH] Organization.remove_members, .add_public_members and .remove_public_members --- Reference.md | 6 +++--- github/GithubObjects.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Reference.md b/Reference.md index bc342ba9..e290fd75 100644 --- a/Reference.md +++ b/Reference.md @@ -77,7 +77,7 @@ /orgs/:org/members/:user ======================== - GET: `` (TODO SOON) - - DELETE: `` (TODO SOON) + - DELETE: `Organization.remove_members( user )` /orgs/:org/public_members ========================= @@ -86,8 +86,8 @@ /orgs/:org/public_members/:user =============================== - GET: `` (TODO SOON) - - PUT: `` (TODO SOON) - - DELETE: `` (TODO SOON) + - PUT: `Organization.add_public_members( user )` + - DELETE: `Organization.remove_public_members( user )` /orgs/:org/repos ================ diff --git a/github/GithubObjects.py b/github/GithubObjects.py index 22485f34..5c74bcc0 100644 --- a/github/GithubObjects.py +++ b/github/GithubObjects.py @@ -46,8 +46,8 @@ Organization = GithubObject( "disk_usage", "collaborators", "billing_email", "plan", "private_gists", "total_private_repos", "owned_private_repos", ), - ExtendedListAttribute( "public_members", NamedUser ), - ExtendedListAttribute( "members", NamedUser ), + ExtendedListAttribute( "public_members", NamedUser, True, True ), + ExtendedListAttribute( "members", NamedUser, removable = True ), Editable( [], [ "billing_email", "blog", "company", "email", "location", "name" ] ), )