From 0559014ee5957331d05e857c6a929279837b2e8e Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Tue, 24 Apr 2012 01:04:53 +0200 Subject: Move Team to orgs --- pygithub3/resources/orgs.py | 6 ++++++ pygithub3/resources/repos.py | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'pygithub3/resources') diff --git a/pygithub3/resources/orgs.py b/pygithub3/resources/orgs.py index be6769a..a79395d 100644 --- a/pygithub3/resources/orgs.py +++ b/pygithub3/resources/orgs.py @@ -12,3 +12,9 @@ class Org(Resource): def __str__(self): return '' % getattr(self, 'login', '') + + +class Team(Resource): + + def __str__(self): + return '' % getattr(self, 'name', '') 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 '' % getattr(self, 'name', '') -class Team(Resource): - - def __str__(self): - return '' % 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') -- cgit v1.2.3-59-g8ed1b