mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
User.get_orgs
This commit is contained in:
@@ -9,6 +9,8 @@ class SimpleScalarAttributes:
|
||||
self.__attributeNames = attributeNames
|
||||
|
||||
def getValueFromRawValue( self, obj, rawValue ):
|
||||
# if isinstance( rawValue, dict ):
|
||||
# print rawValue, "is a dict, you may want to use an extended attribute for it"
|
||||
return rawValue
|
||||
|
||||
def updateAttributes( self, obj ):
|
||||
|
||||
@@ -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 ),
|
||||
|
||||
Reference in New Issue
Block a user