Organization.edit

This commit is contained in:
Vincent Jacques
2012-02-12 22:19:09 +01:00
parent 1a056e61f5
commit 23ce03c634
3 changed files with 5 additions and 1 deletions
+3
View File
@@ -43,3 +43,6 @@ dumpRepository( g.get_user( "nvie" ).get_repos()[ 0 ] )
# print "Bio before:", u.bio
# u.edit( bio = u.bio + "(Edited by PyGithub)" )
# print "Bio after:", u.bio
# o = g.get_organization( "BeaverSoftware" )
# o.edit( location = "Paris, France" )
+1 -1
View File
@@ -64,7 +64,7 @@
/orgs/:org
==========
- GET: `Github.get_organization( login )`: `Organization`
- PATCH: `` (TODO)
- PATCH: `Organization.edit( ... )`
/orgs/:org/events
=================
+1
View File
@@ -45,6 +45,7 @@ Organization = GithubObject(
),
ExtendedListAttribute( "public_members", NamedUser ),
ExtendedListAttribute( "members", NamedUser ),
Editable( [], [ "billing_email", "blog", "company", "email", "location", "name" ] ),
)
AuthenticatedUser._addAttributePolicy( ExtendedListAttribute( "orgs", Organization ) )