diff options
author | 2012-04-28 23:47:25 +0200 | |
---|---|---|
committer | 2012-04-28 23:47:25 +0200 | |
commit | 5178849299bf8d0a903811c3b7561e8bc3bb6c14 (patch) | |
tree | 2f914320c4f3813ec8a0058abb189fae822bb4ed /pygithub3/resources | |
parent | :sparkles: Release 0.3 :sparkles: (diff) | |
parent | Add Teams Service (diff) | |
download | python-github3-5178849299bf8d0a903811c3b7561e8bc3bb6c14.tar.xz python-github3-5178849299bf8d0a903811c3b7561e8bc3bb6c14.zip |
Merged pull request #5 from stefanor:services/orgs
Diffstat (limited to 'pygithub3/resources')
-rw-r--r-- | pygithub3/resources/orgs.py | 14 | ||||
-rw-r--r-- | pygithub3/resources/repos.py | 7 |
2 files changed, 14 insertions, 7 deletions
diff --git a/pygithub3/resources/orgs.py b/pygithub3/resources/orgs.py index 3996172..6e2d39b 100644 --- a/pygithub3/resources/orgs.py +++ b/pygithub3/resources/orgs.py @@ -11,4 +11,16 @@ class Org(Resource): _dates = ('created_at', ) def __str__(self): - return '<Org (%s)>' % getattr(self, 'name', '') + return '<Org (%s)>' % getattr(self, 'login', '') + + +class Team(Resource): + + def __str__(self): + return '<Team (%s)>' % getattr(self, 'name', '') + + +class Member(Resource): + + def __str__(self): + return '<TeamMember (%s)>' % getattr(self, 'login', '') diff --git a/pygithub3/resources/repos.py b/pygithub3/resources/repos.py index c7ec5e8..f50d694 100644 --- a/pygithub3/resources/repos.py +++ b/pygithub3/resources/repos.py @@ -18,12 +18,6 @@ class Repo(Resource): return '<Repo (%s)>' % getattr(self, 'name', '') -class Team(Resource): - - def __str__(self): - return '<Team (%s)>' % getattr(self, 'name', '') - - class Author(Resource): _dates = ('date') @@ -115,6 +109,7 @@ class Download(Resource): 'Policy': self.policy, 'Signature': self.signature, 'Content-Type': self.mime_type}) + class Hook(Resource): _dates = ('created_at', 'pushed_at') |