GithubObject.edit => restore testEditAuthenticatedUser

This commit is contained in:
Vincent Jacques
2012-05-03 22:29:24 +01:00
parent 68329733db
commit 2f536fd95d
21 changed files with 590 additions and 124 deletions
+11 -1
View File
@@ -54,7 +54,17 @@ class RepositoryKey( object ):
pass
def edit( self, title, key ):
pass
post_parameters = {
"title": title,
"key": key,
}
result = self.__github._dataRequest(
"PATCH",
"https://api.github.com/user",
None,
post_parameters
)
self.__useAttributes( result )
def __useAttributes( self, attributes ):
if "id" in attributes: