User.get_orgs

This commit is contained in:
Vincent Jacques
2012-02-12 20:39:40 +01:00
parent 6007a90e09
commit c8dfda6504
4 changed files with 8 additions and 2 deletions
+3
View File
@@ -38,6 +38,9 @@ Organization = GithubObject(
ExtendedListAttribute( "members", NamedUser ),
)
AuthenticatedUser._addAttributePolicy( ExtendedListAttribute( "orgs", Organization ) )
NamedUser._addAttributePolicy( ExtendedListAttribute( "orgs", Organization ) )
Repository = GithubObject(
"Repository",
BaseUrl( lambda obj: "/repos/" + obj.owner.login + "/" + obj.name ),