User.get_followers and .get_following

This commit is contained in:
Vincent Jacques
2012-02-12 21:11:37 +01:00
parent c8dfda6504
commit 933af01d05
3 changed files with 11 additions and 4 deletions
+5
View File
@@ -23,6 +23,11 @@ NamedUser = GithubObject(
),
)
AuthenticatedUser._addAttributePolicy( ExtendedListAttribute( "followers", NamedUser ) )
NamedUser._addAttributePolicy( ExtendedListAttribute( "followers", NamedUser ) )
AuthenticatedUser._addAttributePolicy( ExtendedListAttribute( "following", NamedUser ) )
NamedUser._addAttributePolicy( ExtendedListAttribute( "following", NamedUser ) )
Organization = GithubObject(
"Organization",
BaseUrl( lambda obj: "/orgs/" + obj.login ),