diff options
author | 2012-05-27 21:39:03 +0200 | |
---|---|---|
committer | 2012-06-03 14:47:23 +0200 | |
commit | 9dedea7efc93c542d8088435fd45891626bc791b (patch) | |
tree | fdad343826fd3eeeb9de2fa75f5bf90b085ea92e /pygithub3/resources/orgs.py | |
parent | Merge pull request #11 from dsc/patch-1 (diff) | |
parent | Authors updated (diff) | |
download | python-github3-9dedea7efc93c542d8088435fd45891626bc791b.tar.xz python-github3-9dedea7efc93c542d8088435fd45891626bc791b.zip |
Merge #5 'services/orgs'
Diffstat (limited to 'pygithub3/resources/orgs.py')
-rw-r--r-- | pygithub3/resources/orgs.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/pygithub3/resources/orgs.py b/pygithub3/resources/orgs.py index 3996172..f0a9804 100644 --- a/pygithub3/resources/orgs.py +++ b/pygithub3/resources/orgs.py @@ -2,6 +2,7 @@ # -*- encoding: utf-8 -*- from .base import Resource +from .users import Plan __all__ = ('Org', ) @@ -9,6 +10,19 @@ __all__ = ('Org', ) class Org(Resource): _dates = ('created_at', ) + _maps = {'plan': Plan} 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', '') |