aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/resources/orgs.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-04-28 23:47:25 +0200
committerDavid Medina <davidmedina9@gmail.com>2012-04-28 23:47:25 +0200
commit5178849299bf8d0a903811c3b7561e8bc3bb6c14 (patch)
tree2f914320c4f3813ec8a0058abb189fae822bb4ed /pygithub3/resources/orgs.py
parent:sparkles: Release 0.3 :sparkles: (diff)
parentAdd Teams Service (diff)
downloadpython-github3-5178849299bf8d0a903811c3b7561e8bc3bb6c14.tar.xz
python-github3-5178849299bf8d0a903811c3b7561e8bc3bb6c14.zip
Merged pull request #5 from stefanor:services/orgs
Diffstat (limited to 'pygithub3/resources/orgs.py')
-rw-r--r--pygithub3/resources/orgs.py14
1 files changed, 13 insertions, 1 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', '')