diff --git a/CodeGenerator/templates/GithubObject.py b/CodeGenerator/templates/GithubObject.py index 31a38e39..3ed3b799 100644 --- a/CodeGenerator/templates/GithubObject.py +++ b/CodeGenerator/templates/GithubObject.py @@ -27,8 +27,15 @@ class {{ class.name }}( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) {% for method in class.methods|dictsort:"name" %} def {{ method.name|join:"_" }}( {% include "GithubObject.Parameters.py" with function=method only %} ): diff --git a/github/GithubObjects/AuthenticatedUser.py b/github/GithubObjects/AuthenticatedUser.py index 6363af11..76c6b3db 100644 --- a/github/GithubObjects/AuthenticatedUser.py +++ b/github/GithubObjects/AuthenticatedUser.py @@ -199,8 +199,15 @@ class AuthenticatedUser( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def add_to_emails( self, *emails ): pass diff --git a/github/GithubObjects/Authorization.py b/github/GithubObjects/Authorization.py index f7365436..1df7b457 100644 --- a/github/GithubObjects/Authorization.py +++ b/github/GithubObjects/Authorization.py @@ -79,8 +79,15 @@ class Authorization( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def delete( self ): pass diff --git a/github/GithubObjects/Branch.py b/github/GithubObjects/Branch.py index a2571c74..701b67df 100644 --- a/github/GithubObjects/Branch.py +++ b/github/GithubObjects/Branch.py @@ -31,8 +31,15 @@ class Branch( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def __useAttributes( self, attributes ): if "commit" in attributes: diff --git a/github/GithubObjects/Commit.py b/github/GithubObjects/Commit.py index d31e2183..3762dfe2 100644 --- a/github/GithubObjects/Commit.py +++ b/github/GithubObjects/Commit.py @@ -75,8 +75,15 @@ class Commit( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def create_comment( self, body, commit_id = None, line = None, path = None, position = None ): pass diff --git a/github/GithubObjects/CommitComment.py b/github/GithubObjects/CommitComment.py index a37f41b2..4a7bfaaa 100644 --- a/github/GithubObjects/CommitComment.py +++ b/github/GithubObjects/CommitComment.py @@ -94,8 +94,15 @@ class CommitComment( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def delete( self ): pass diff --git a/github/GithubObjects/Download.py b/github/GithubObjects/Download.py index 74d5bbca..f666300d 100644 --- a/github/GithubObjects/Download.py +++ b/github/GithubObjects/Download.py @@ -156,8 +156,15 @@ class Download( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def delete( self ): pass diff --git a/github/GithubObjects/Event.py b/github/GithubObjects/Event.py index 8a8cdbf4..8f28bfcd 100644 --- a/github/GithubObjects/Event.py +++ b/github/GithubObjects/Event.py @@ -103,8 +103,15 @@ class Event( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def __useAttributes( self, attributes ): if "actor" in attributes: diff --git a/github/GithubObjects/Gist.py b/github/GithubObjects/Gist.py index a1117f5a..a23eca48 100644 --- a/github/GithubObjects/Gist.py +++ b/github/GithubObjects/Gist.py @@ -117,8 +117,15 @@ class Gist( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def create_comment( self, body ): pass diff --git a/github/GithubObjects/GistComment.py b/github/GithubObjects/GistComment.py index b311e439..4cbcbaf0 100644 --- a/github/GithubObjects/GistComment.py +++ b/github/GithubObjects/GistComment.py @@ -59,8 +59,15 @@ class GistComment( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def delete( self ): pass diff --git a/github/GithubObjects/GitBlob.py b/github/GithubObjects/GitBlob.py index 0429f4a6..6d02c734 100644 --- a/github/GithubObjects/GitBlob.py +++ b/github/GithubObjects/GitBlob.py @@ -51,8 +51,15 @@ class GitBlob( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def __useAttributes( self, attributes ): if "content" in attributes: diff --git a/github/GithubObjects/GitCommit.py b/github/GithubObjects/GitCommit.py index cd646462..c6dc6dde 100644 --- a/github/GithubObjects/GitCommit.py +++ b/github/GithubObjects/GitCommit.py @@ -66,8 +66,15 @@ class GitCommit( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def __useAttributes( self, attributes ): if "author" in attributes: diff --git a/github/GithubObjects/GitRef.py b/github/GithubObjects/GitRef.py index 4c55b90c..4c6c947f 100644 --- a/github/GithubObjects/GitRef.py +++ b/github/GithubObjects/GitRef.py @@ -37,8 +37,15 @@ class GitRef( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def delete( self ): pass diff --git a/github/GithubObjects/GitTag.py b/github/GithubObjects/GitTag.py index fec53938..ccaae5ee 100644 --- a/github/GithubObjects/GitTag.py +++ b/github/GithubObjects/GitTag.py @@ -58,8 +58,15 @@ class GitTag( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def __useAttributes( self, attributes ): if "message" in attributes: diff --git a/github/GithubObjects/GitTree.py b/github/GithubObjects/GitTree.py index d823f004..6f49739e 100644 --- a/github/GithubObjects/GitTree.py +++ b/github/GithubObjects/GitTree.py @@ -44,8 +44,15 @@ class GitTree( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def __useAttributes( self, attributes ): if "recursive" in attributes: diff --git a/github/GithubObjects/Hook.py b/github/GithubObjects/Hook.py index ac1952c6..ab0da331 100644 --- a/github/GithubObjects/Hook.py +++ b/github/GithubObjects/Hook.py @@ -79,8 +79,15 @@ class Hook( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def delete( self ): pass diff --git a/github/GithubObjects/Issue.py b/github/GithubObjects/Issue.py index 1e20cb32..a8cbd8bb 100644 --- a/github/GithubObjects/Issue.py +++ b/github/GithubObjects/Issue.py @@ -140,8 +140,15 @@ class Issue( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def add_to_labels( self, *labels ): pass diff --git a/github/GithubObjects/IssueComment.py b/github/GithubObjects/IssueComment.py index fc3a7a27..aafdd3f5 100644 --- a/github/GithubObjects/IssueComment.py +++ b/github/GithubObjects/IssueComment.py @@ -59,8 +59,15 @@ class IssueComment( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def delete( self ): pass diff --git a/github/GithubObjects/IssueEvent.py b/github/GithubObjects/IssueEvent.py index 68cff8c8..1db852c8 100644 --- a/github/GithubObjects/IssueEvent.py +++ b/github/GithubObjects/IssueEvent.py @@ -66,8 +66,15 @@ class IssueEvent( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def __useAttributes( self, attributes ): if "actor" in attributes: diff --git a/github/GithubObjects/Label.py b/github/GithubObjects/Label.py index 25a6e764..009b7e5f 100644 --- a/github/GithubObjects/Label.py +++ b/github/GithubObjects/Label.py @@ -37,8 +37,15 @@ class Label( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def delete( self ): pass diff --git a/github/GithubObjects/Milestone.py b/github/GithubObjects/Milestone.py index f355b6ed..6033c0de 100644 --- a/github/GithubObjects/Milestone.py +++ b/github/GithubObjects/Milestone.py @@ -88,8 +88,15 @@ class Milestone( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def delete( self ): pass diff --git a/github/GithubObjects/NamedUser.py b/github/GithubObjects/NamedUser.py index 12f3fa12..3e43531d 100644 --- a/github/GithubObjects/NamedUser.py +++ b/github/GithubObjects/NamedUser.py @@ -203,8 +203,15 @@ class NamedUser( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def create_gist( self, public, files, description = None ): pass diff --git a/github/GithubObjects/Organization.py b/github/GithubObjects/Organization.py index 98aa7d0a..2ee3627b 100644 --- a/github/GithubObjects/Organization.py +++ b/github/GithubObjects/Organization.py @@ -188,8 +188,15 @@ class Organization( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def add_to_public_members( self, public_member ): pass diff --git a/github/GithubObjects/PullRequest.py b/github/GithubObjects/PullRequest.py index 015e9e33..1f1f8718 100644 --- a/github/GithubObjects/PullRequest.py +++ b/github/GithubObjects/PullRequest.py @@ -202,8 +202,15 @@ class PullRequest( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def edit( self, title = None, body = None, state = None ): pass diff --git a/github/GithubObjects/PullRequestComment.py b/github/GithubObjects/PullRequestComment.py index a016463f..a3aa1048 100644 --- a/github/GithubObjects/PullRequestComment.py +++ b/github/GithubObjects/PullRequestComment.py @@ -94,8 +94,15 @@ class PullRequestComment( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def delete( self ): pass diff --git a/github/GithubObjects/PullRequestFile.py b/github/GithubObjects/PullRequestFile.py index 60e3be8c..c3441d5e 100644 --- a/github/GithubObjects/PullRequestFile.py +++ b/github/GithubObjects/PullRequestFile.py @@ -79,8 +79,15 @@ class PullRequestFile( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def __useAttributes( self, attributes ): if "additions" in attributes: diff --git a/github/GithubObjects/Repository.py b/github/GithubObjects/Repository.py index bccc421b..2129887d 100644 --- a/github/GithubObjects/Repository.py +++ b/github/GithubObjects/Repository.py @@ -247,8 +247,15 @@ class Repository( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def add_to_collaborators( self, collaborator ): pass diff --git a/github/GithubObjects/RepositoryKey.py b/github/GithubObjects/RepositoryKey.py index f8e8c67f..a1453077 100644 --- a/github/GithubObjects/RepositoryKey.py +++ b/github/GithubObjects/RepositoryKey.py @@ -44,8 +44,15 @@ class RepositoryKey( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def delete( self ): pass diff --git a/github/GithubObjects/Tag.py b/github/GithubObjects/Tag.py index c9a82da1..04eac023 100644 --- a/github/GithubObjects/Tag.py +++ b/github/GithubObjects/Tag.py @@ -45,8 +45,15 @@ class Tag( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def __useAttributes( self, attributes ): if "commit" in attributes: diff --git a/github/GithubObjects/Team.py b/github/GithubObjects/Team.py index 0022c37c..08cba11c 100644 --- a/github/GithubObjects/Team.py +++ b/github/GithubObjects/Team.py @@ -60,8 +60,15 @@ class Team( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def add_to_members( self, member ): pass diff --git a/github/GithubObjects/UserKey.py b/github/GithubObjects/UserKey.py index 87557b8b..401ca2c4 100644 --- a/github/GithubObjects/UserKey.py +++ b/github/GithubObjects/UserKey.py @@ -44,8 +44,15 @@ class UserKey( object ): self.__complete() self.__completed = True + # @todo Do not generate __complete if type has no url attribute def __complete( self ): - pass + result = self.__github._dataRequest( + "GET", + self.url, + None, + None + ) + self.__useAttributes( result ) def delete( self ): pass