This commit is contained in:
Vincent Jacques
2012-03-03 11:53:37 +00:00
parent b24d995b4c
commit db4b8a1512
2 changed files with 33 additions and 1 deletions
+1 -1
View File
@@ -610,7 +610,7 @@ Gist = GithubObject(
], "Starring" ),
)
def __createFork( gist ):
return Gist( gitst._github, gist._github._dataRequest( "POST", gist._baseUrl + "/fork", None, None ), lazy = True )
return Gist( gist._github, gist._github._dataRequest( "POST", gist._baseUrl + "/fork", None, None ), lazy = True )
Gist._addAttributePolicy( SeveralAttributePolicies( [
MethodFromCallable( "create_fork", [], [], __createFork, ObjectTypePolicy( Gist ) ),
], "Forking" ),